[LLVMbugs] [Bug 24318] New: Segmentation fault when using nested templated typedefs

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jul 30 09:52:00 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=24318

            Bug ID: 24318
           Summary: Segmentation fault when using nested templated
                    typedefs
           Product: clang
           Version: 3.6
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: gereon.kremer at cs.rwth-aachen.de
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 14674
  --> https://llvm.org/bugs/attachment.cgi?id=14674&action=edit
Source code

Some of our code makes clang 3.6.2-1 (Arch Linux) crash.
Based on our code, I crafted a very small example demonstrating this bug.

Basically, we have a templated class A with a nested class B that is also
templated.
Now, we have another templated class C that defines a typedef for A<T>::B<T>.
Finally, we try to use this typedef in the main function.

Clang bails out on this:

$ clang++ clangcrash.cpp
clang: error: unable to execute command: Segmentation fault (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.6.2 (tags/RELEASE_362/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/clangcrash-21862e.cpp
clang: note: diagnostic msg: /tmp/clangcrash-21862e.sh
clang: note: diagnostic msg: 

********************


Attached, you find the example.

-- 
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/20150730/cdab40d1/attachment.html>


More information about the llvm-bugs mailing list