This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/39605] New: "error: variable-size type declared outside of any function" is issued twice
- From: "gerald at pfeifer dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Mar 2009 22:55:26 -0000
- Subject: [Bug c/39605] New: "error: variable-size type declared outside of any function" is issued twice
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following snippet
#define FIRST ((void*)0x80)
#define LAST ((void*)0x86)
static int b[LAST-FIRST];
now (2009-03-31) generates the following compiler errors which did not
appear two(?) days ago.
error: variable-size type declared outside of any function
error: variable-size type declared outside of any function
I assume the diagnosis as such is correct, but the fact that it is issued
twice doesn't seem to be.
I believe this is a consequence of the following patch.
2009-03-29 Joseph Myers <joseph@codesourcery.com>
PR c/456
PR c/5675
PR c/19976
PR c/29116
PR c/31871
PR c/35198
--
Summary: "error: variable-size type declared outside of any
function" is issued twice
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: gerald at pfeifer dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39605