-
Notifications
You must be signed in to change notification settings - Fork 15.1k
Closed
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillac++clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"confirmedVerified by a second partyVerified by a second partycrash-on-invalid
Description
| Bugzilla Link | 10146 |
| Version | 2.9 |
| OS | Linux |
| Attachments | Template classes causing clang++ segfault |
| Reporter | LLVM Bugzilla Contributor |
| CC | @asl,@DougGregor |
Extended Description
When compiling the attached code, by invoking:
clang++ test.cc
causes a segmentation fault in both version 2.8 as included with Ubuntu x86_64, as well as with the LLVM supplied 2.9 x86_64 and i686 versions.
Stack dump:
0. Program arguments: /home/gertjan/tmp/clang/clang+llvm-2.9-x86_64-linux.tar/bin/clang -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name test.cc -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.21.0.20110327 -momit-leaf-frame-pointer -resource-dir /home/gertjan/tmp/clang/clang+llvm-2.9-x86_64-linux.tar/bin/../lib/clang/2.9 -ferror-limit 19 -fmessage-length 80 -fcxx-exceptions -fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-hc4Fnt.o -x c++ test.cc
1. test.cc:11:10: current parser token '{'
2. test.cc:10:1: parsing struct/union/class body 'B'
clang: error: unable to execute command: Segmentation fault
clang: error: clang frontend command failed due to signal 1 (use -v to see invocation)
Metadata
Metadata
Assignees
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillac++clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"confirmedVerified by a second partyVerified by a second partycrash-on-invalid