[LLVMbugs] [Bug 9880] New: Regression: clang crashes with "HasMemberXXX" template when return types are outside the template
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon May 9 10:32:21 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=9880
Summary: Regression: clang crashes with "HasMemberXXX" template
when return types are outside the template
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: C++0x
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: jonathan.sauer at gmx.de
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Created an attachment (id=6564)
--> (http://llvm.org/bugs/attachment.cgi?id=6564)
The code crashing clang
The attached code is used to check if a class has a member "luaIndex" via
SFINAE and the helper template "HasIndexMetamethod".
When NO_CRASH_PLEASE is undefined, the structs "no_tag" and "yes" tag are
outside "HasIndexMetamethod", and clang crashes with an assertion (see attached
log).
When NO_CRASH_PLEASE is defined, the two structs are inside
"HasIndexMetamethod", and clang does not crash.
The code used to work in clang trunk from two weeks ago (25th May around noon).
Unfortunately, I do not remember the revision anymore.
My clang version: /opt/bin/clang -std=c++0x --version
clang version 3.0 (trunk 131082)
Target: x86_64-apple-darwin10.7.0
Thread model: posix
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list