[llvm-bugs] [Bug 41087] New: small code crashing clang compiler (stack overflow caused by getTypeInfo calling itself endlessly)
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Mar 15 09:06:43 PDT 2019
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: unassignedclangbugs at nondot.org
Reporter: william.ledoux at gmail.com
CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
neeilans at live.com, richard-llvm at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190315/0221cdc6/attachment-0001.html>
More information about the llvm-bugs
mailing list