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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to