[LLVMbugs] [Bug 12219] New: clang frontend crash

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Mar 9 10:42:42 PST 2012


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

             Bug #: 12219
           Summary: clang frontend crash
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: adamartin at freebsd.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 8167
  --> http://llvm.org/bugs/attachment.cgi?id=8167
Preprocessed sources from clang frontend run.

clang++ -O2 -pipe -fstack-protector -Wno-system-headers -O0 -g -fno-inline
-Wall -Werror -I /usr/local/include -I ../../ -DCXXSH_DEBUG_MODE=true
-DGLIBCXX_DEBUG -DGLIBCXX_DEBUG_EXTRA -Wno-c++11-compat -Wno-unused-function
-std=c++11 -Qunused-arguments -c test.cc
Assertion failed: (!isa<CXXConstructorDecl>(D) && "Use other ctor with ctor
decls!"), function Init, file
/usr/obj/portbuild/usr/ports/lang/clang-devel/work/llvm-3.1.r150242/tools/clang/lib/CodeGen/../../include/clang/AST/GlobalDecl.h,
line 32.
Stack dump:
0.      Program arguments: /usr/local/bin/clang -cc1 -triple
amd64-portbld-freebsd8.2 -emit-obj -mrelax-all -disable-free -main-file-name
test.cc -mrelocation-model static -mdisable-fp-elim -masm-verbose
-mconstructor-aliases -target-cpu x86-64 -target-linker-version 2.15
-momit-leaf-frame-pointer -g -coverage-file test.o -resource-dir
/usr/local/bin/../lib/clang/3.1 -D CXXSH_DEBUG_MODE=true -D GLIBCXX_DEBUG -D
GLIBCXX_DEBUG_EXTRA -I /usr/local/include -I ../../ -fmodule-cache-path
/var/tmp/clang-module-cache -O0 -Wno-system-headers -Wall -Werror
-Wno-c++11-compat -Wno-unused-function -std=c++11 -fdeprecated-macro
-fdebug-compilation-dir /Users/adam/proj/Alepha/Posix -ferror-limit 19
-fmessage-length 127 -stack-protector 1 -mstackrealign -fgnu-runtime
-fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-fragile-abi
-fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o
test.o -x c++ test.cc
1.      <eof> parser at end of file
2.      Per-file LLVM IR generation
3.      ../../Alepha/Posix/File.h:40:5: Generating code for declaration
'Alepha::Posix::File::File'
4.      ../../Alepha/Posix/File.h:42:5: LLVM IR generation of compound
statement ('{}')
5.      ../../Alepha/Posix/File.h:44:6: LLVM IR generation of compound
statement ('{}')
clang: error: unable to execute command: Abort trap: 6
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang: note: diagnostic msg: Please submit a bug report to
http://llvm.org/bugs/ and include command line arguments and all diagnostic
information.
clang: note: diagnostic msg: Preprocessed source(s) and associated run
script(s) are located at:
clang: note: diagnostic msg: /tmp/test-Wmfz9e.ii
clang: note: diagnostic msg: /tmp/test-Wmfz9e.sh
*** Error code 254

The preprocessed sources are attached.  I have been attempting to use many
C++11 features.

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