[LLVMbugs] [Bug 5562] New: Compiling protocol class crashes clang
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Thu Nov 19 08:04:48 PST 2009
http://llvm.org/bugs/show_bug.cgi?id=5562
Summary: Compiling protocol class crashes clang
Product: clang
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: parser
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: csdavec at swan.ac.uk
CC: llvmbugs at cs.uiuc.edu
Compiling a source file that contains an interface definition for the Protocol
class crashes clang. To reproduce:
$ echo @interface Protocol @end | clang -x objective-c -
Assertion failed: (!D->getNextDeclInContext() && D != LastDecl && "Decl already
inserted into a DeclContext"), function addHiddenDecl, file DeclBase.cpp, line
644.
Stack dump:
0. Program arguments: /usr/home/theraven/llvm/Debug/bin/clang-cc -triple
i386-unknown-freebsd8.0 -S -disable-free -main-file-name - --relocation-model
static --disable-fp-elim --unwind-tables=0 --mcpu pentium4 --fmath-errno=1
-fmessage-length 100 -fexceptions=0 -fgnu-runtime -fdiagnostics-show-option
-fcolor-diagnostics -o /tmp/cc-9XJ6nj.s -x objective-c -
1. <stdin>:1:21: current parser token '@'
--
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