skaeads12
skaeads12
https://godbolt.org/z/KsoKcqxEf (`-O2`, x86_64) ```c int a = 0, c = 0; int d[8][8] = {0, 5, 10, 15, 19, 23, 27, 30, 1, 6, 11, 16, 20, 20, 20, 25,...
https://godbolt.org/z/TjEaesrPE (`-O0`, x86_64) ```c __attribute__((vector_size(4))) int v; void f(long x) { __asm__("" : "=r"(v) : "0"(x)); } ``` ``` clang: llvm/lib/IR/Instructions.cpp:3164: static llvm::CastInst* llvm::CastInst::Create(llvm::Instruction::CastOps, llvm::Value*, llvm::Type*, const llvm::Twine&, llvm::InsertPosition): Assertion...
https://godbolt.org/z/K7n6Kn8h3 (`-O0`; `-O2` crashes the same way, x86_64) ```c typedef long v2i64 __attribute__((vector_size(16))); void f(v2i64 v) { asm("" : : "A"(v)); } ``` ``` clang: llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp:745: void getCopyToPartsVector(llvm::SelectionDAG&, const llvm::SDLoc&,...
https://godbolt.org/z/sqhGsb1Tn (assertions trunk `-O2 -c`; also release trunk `-emit-llvm` and GCC 16.2) ```c void *b(int) __attribute__((alloc_size(1, 1))); void *c(void) { return b(4); } ``` ``` clang: /root/llvm-project/llvm/lib/IR/Attributes.cpp:2262: llvm::AttrBuilder& llvm::AttrBuilder::addAllocSizeAttrFromRawRepr(uint64_t): Assertion...
The constant evaluator asserts "No array filler" when it reads an element of an initialized array with 2^32 or more elements, because `APValue` stores array sizes as `unsigned`. Valid C;...
`__swift_attr__` without an argument in type-attribute position reads argument 0 of an empty argument list. Assertions builds assert, and release builds segfault instead of reporting the error. Invalid code; regression...
Inline asm that equates a symbol to a register and then uses the same name for a section asserts in `MCSymbol::setFragment`. GNU as accepts the input, and clang release builds...
After a correct "address of register variable requested" error, `CheckVectorLogicalOperands` passes the invalid operand to `InvalidOperands`, which dereferences it. Assertions builds assert, release builds segfault. Invalid code (error recovery). ###...
The scanf format checker reads past the end of a format string that ends in `%*`. When the stray byte is not NUL, the parser keeps scanning past the literal,...
After a redefinition error, a further redeclaration with a different type is not diagnosed, and the constant evaluator then returns a signed value for an unsigned expression and asserts. Invalid...