[LLVMbugs] [Bug 4266] New: llvm-gcc segfaults on void (*f)(enum b); if b not declared
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Mon May 25 14:06:16 PDT 2009
http://llvm.org/bugs/show_bug.cgi?id=4266
Summary: llvm-gcc segfaults on void (*f)(enum b); if b not
declared
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: sliedes at cc.hut.fi
CC: llvmbugs at cs.uiuc.edu
1. Create a file test.c with the line
void (*f)(enum b);
2. Run llvm-gcc -c test.c
3. llvm-gcc crashes:
---------------------------------------------------------
$ llvm-gcc -c test.c
test.c:1: warning: 'enum b' declared inside parameter list
test.c:1: warning: its scope is only this definition or declaration, which is
probably not what you want
test.c:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://llvm.org/bugs/> for instructions.
---------------------------------------------------------
I have llvm and llvm-gcc svn head from today. Architecture is i386.
--
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