[LLVMbugs] [Bug 1885] New: Cannot forward-declare static array
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Fri Dec 28 13:41:06 PST 2007
http://llvm.org/bugs/show_bug.cgi?id=1885
Summary: Cannot forward-declare static array
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P2
Component: Semantic Analyzer
AssignedTo: unassignedbugs at nondot.org
ReportedBy: sharparrow1 at yahoo.com
CC: llvmbugs at cs.uiuc.edu
Not sure if this is the right component.
gcc -fsyntax-only accepts the following, but clang does not:
static int array[];
Note that gcc also rejects this code with the -pedantic flag enabled.
Found in the ffmpeg source code.
On a side note, the error "variable has incomplete type 'int []'" is a bit
obscure. It would be nice if the error actually gave a hint as to why this is
an error.
--
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