[LLVMbugs] [Bug 13197] New: clang crashes while evaluating constexpr constructor

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jun 25 03:41:26 PDT 2012


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

             Bug #: 13197
           Summary: clang crashes while evaluating constexpr constructor
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++11
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: lunow at math.hu-berlin.de
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 8756
  --> http://llvm.org/bugs/attachment.cgi?id=8756
testcase

It also crashes on my clang-3.1 build.

daniel at daniel-VirtualBox:~/projects/Code/clangtest$
~/projects/Build/llvm/bin/clang++ -std=c++11 clangtest1.cpp
clang-3.2:
/home/daniel/projects/Code/llvm/tools/clang/include/clang/AST/APValue.h:306:
clang::APValue& clang::APValue::getStructField(unsigned int): Assertion
`isStruct() && "Invalid accessor"' failed.
Stack dump:
0.    Program arguments: /home/daniel/projects/Build/llvm/bin/clang-3.2 -cc1
-triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free
-main-file-name clangtest1.cpp -mrelocation-model static -mdisable-fp-elim
-fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu
x86-64 -momit-leaf-frame-pointer -resource-dir
/home/daniel/projects/Build/llvm/bin/../lib/clang/3.2 -fmodule-cache-path
/var/tmp/clang-module-cache -internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6 -internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/x86_64-linux-gnu
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/backward
-internal-isystem /usr/local/include -internal-isystem
/home/daniel/projects/Build/llvm/bin/../lib/clang/3.2/include
-internal-externc-isystem /usr/include/x86_64-linux-gnu
-internal-externc-isystem /include -internal-externc-isystem /usr/include
-std=c++11 -fdeprecated-macro -fdebug-compilation-dir
/home/daniel/projects/Code/clangtest -ferror-limit 19 -fmessage-length 120
-mstackrealign -fobjc-runtime=gnu-fragile -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -o /tmp/clangtest1-jJoDA7.o -x
c++ clangtest1.cpp 
1.    clangtest1.cpp:40:2: current parser token ';'
clang-3: error: unable to execute command: Aborted (core dumped)
clang-3: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.2 (trunk 159117)
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang-3: note: diagnostic msg: PLEASE submit a bug report to  and include the
crash backtrace, preprocessed source, and associated run script.
clang-3: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-3: note: diagnostic msg: /tmp/clangtest1-LlQh1h.ii
clang-3: note: diagnostic msg: /tmp/clangtest1-LlQh1h.sh
clang-3: note: diagnostic msg: 

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

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