This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/27020] [4.0/4.1 regression] ICE on invalid array size
- From: "jsm28 at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Jun 2006 14:30:05 -0000
- Subject: [Bug c/27020] [4.0/4.1 regression] ICE on invalid array size
- References: <bug-27020-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from jsm28 at gcc dot gnu dot org 2006-06-05 14:30 -------
Subject: Bug 27020
Author: jsm28
Date: Mon Jun 5 14:29:52 2006
New Revision: 114388
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=114388
Log:
PR c/25161
PR c/27020
* c-decl.c (grokdeclarator): Disallow variably modified types at
file scope. Avoid marking shared array type of constant size as
VLA.
testsuite:
* gcc.dg/array-10.c: New test.
Added:
branches/gcc-4_1-branch/gcc/testsuite/gcc.dg/array-10.c
- copied unchanged from r114387, trunk/gcc/testsuite/gcc.dg/array-10.c
Modified:
branches/gcc-4_1-branch/gcc/ChangeLog
branches/gcc-4_1-branch/gcc/c-decl.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27020