[LLVMbugs] [Bug 9888] New: Crash when parsing a piece of template metaprogramming code.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue May 10 10:21:40 PDT 2011


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

           Summary: Crash when parsing a piece of template metaprogramming
                    code.
           Product: clang
           Version: unspecified
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: nicola.gigante at gmail.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


The attached source file reproduce a "Segmentation fault" error in the latest
svn clang,
revision 131131.

I've only access to OS X machines but it doesn't seem to be related to
hardware/OS issues.

I can reproduce the bug with the following command:
clang -cc1 -fsyntax-only test.cpp

gdb says:
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00007fff5f3ffff8
0x00000001006a91c6 in clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformTemplateArgument ()

The full backtrace is attached with the source file.

-- 
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