https://bugs.llvm.org/show_bug.cgi?id=41087
Bug ID: 41087
Summary: small code crashing clang compiler (stack overflow
caused by getTypeInfo calling itself endlessly)
Product: clang
Version: trunk
Hardware: PC
URL: https://godbolt.org/z/Gva6I0
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangb...@nondot.org
Reporter: william.led...@gmail.com
CC: htmldevelo...@gmail.com, llvm-bugs@lists.llvm.org,
neeil...@live.com, richard-l...@metafoo.co.uk
Compiling the following snippet will make clang crash.
The getTypeInfo function is calling itself endlessly
template <typename T_CHAR> void foo(){
T_CHAR buffer[32];
((char*)buffer)[0] = 'A';
}
void f(){
foo<char>();
}
You can see the stack trace here and test it against various clang versions
here:
https://godbolt.org/z/Gva6I0
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs