This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/29175] [4.0/4.1/4.2 regression] ICE on invalid C++ variable length array
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Oct 2006 20:29:44 -0000
- Subject: [Bug c++/29175] [4.0/4.1/4.2 regression] ICE on invalid C++ variable length array
- References: <bug-29175-1313@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from reichelt at gcc dot gnu dot org 2006-10-08 20:29 -------
Shorter testcase (the array doesn't have to be static):
=========================
void foo(int i)
{
int x[][i] = { 0 };
}
=========================
The bug appeared with GCC 3.3.
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
Keywords| |monitored
Known to fail|3.3.5 3.4.4 4.0.1 4.1.0 |3.3 3.4.6 4.0.3 4.1.1 4.2.0
|4.2.0 |
Known to work|2.95 |2.95 3.0.4 3.2.3
Summary|[4.0/4.1/4.2 regression] ICE|[4.0/4.1/4.2 regression] ICE
|on invalid: C++ static |on invalid C++ variable
|variable length array |length array
Target Milestone|4.2.0 |4.0.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29175