[LLVMbugs] [Bug 3663] New: clang rejects integer size expression that gcc accepts
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Tue Feb 24 13:40:35 PST 2009
http://llvm.org/bugs/show_bug.cgi?id=3663
Summary: clang rejects integer size expression that gcc accepts
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Semantic Analyzer
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: kremenek at apple.com
CC: llvmbugs at cs.uiuc.edu
clang rejects the following top-level declaration that gcc accepts:
static const unsigned array[((2 * (int)((((4) / 2) + 1.0/3.0) * (4) - 1e-8))
+ 1)];
the error:
$ clang t.c
t.c:1:23: error: variable length array declaration not allowed at file scope
static const unsigned array[((2 * (int)((((4) / 2) + 1.0/3.0) * (4) - 1e-8)) +
1)];
^
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 diagnostic generated.
This is related to <rdar://problem/6437859>. The line above is the complete
test case.
--
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