[LLVMbugs] [Bug 9685] New: Crash on using local struct in template method as parameter to template method

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Apr 12 04:22:10 PDT 2011


http://llvm.org/bugs/show_bug.cgi?id=9685

           Summary: Crash on using local struct in template method as
                    parameter to template method
           Product: clang
           Version: unspecified
          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=6436)
 --> (http://llvm.org/bugs/attachment.cgi?id=6436)
The source responsible for the crash

The attached code crashes clang on compilation. It seems to be a weird
combination of

- A class template
- A local struct in the class template's method which in turn contains a
  templated ()-operator and attributes
- An instanciation of the local struct being passed to a template method of
  another class template

I attached the crash log. Clang's version is:

$ /opt/bin/clang -v
clang version 3.0 (trunk 129269)
Target: x86_64-apple-darwin10
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