This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/20241] New: [4.0/4.1 Regression] ICEing with VLA in template that is type dependent
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Feb 2005 01:32:52 -0000
- Subject: [Bug c++/20241] New: [4.0/4.1 Regression] ICEing with VLA in template that is type dependent
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following "invalid" (well valid if we say that VLA is a GCC extension) ICE in fold_convert:
template<typename T> void foo(T t)
{
int f[t];
}
Also we don't reject this with -pedantic in 2.95.3-3.4.0 either so that is not a regression.
There might be missing a processing_template somewhere.
--
Summary: [4.0/4.1 Regression] ICEing with VLA in template that is
type dependent
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: minor
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20241