Open yype opened 3 weeks ago
@llvm/issue-subscribers-clang-codegen
Author: yype (yype)
This is more obvious what is going on: https://godbolt.org/z/TqMTT4Mfj
int a() {
float b[
({ goto c; 0; }) +
({ c: 0; })
];
}
I think like gcc we should reject this code.
CC @AaronBallman
@llvm/issue-subscribers-clang-frontend
Author: yype (yype)
Hello there, the following invalid test case crashes clang++ by triggering a backend error:
Tested versions: 3.4 ~ trunk (assertions)
Example: https://godbolt.org/z/MThfoGr99
Stack dump:
Side note: I made an effort to avoid submitting a duplicate issue. However,
Instruction does not dominate all uses!
issues sometimes appear similar based on the stack trace and printed instructions. If you know of better root-cause analysis methods to adopt, please advise. Thanks!The test case was generated by a fuzzer.