SegFault with __builtin_bit_cast to templated type and auto return type #42281
Labels
bugzilla
Issues migrated from bugzilla
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
Extended Description
template struct S { int x;};
auto f() {
int t = 5;
return __builtin_bit_cast(S, t);
}
Error:
#4 0x0000557591fc2a05 clang::ASTContext::getASTRecordLayout(clang::RecordDecl const*) const (/opt/compiler-explorer/clang-trunk-20190808/bin/clang-10+0x47d8a05)
clang-10: error: unable to execute command: Segmentation fault (core dumped)
https://godbolt.org/z/4sPmp2
The text was updated successfully, but these errors were encountered: