This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/5919: [3.2/3.3 regression] ICE when passing variable array to template function
- From: Volker Reichelt <reichelt at igpm dot rwth-aachen dot de>
- To: nobody at gcc dot gnu dot org
- Cc: gcc-prs at gcc dot gnu dot org,
- Date: 29 Nov 2002 12:36:01 -0000
- Subject: Re: c++/5919: [3.2/3.3 regression] ICE when passing variable array to template function
- Reply-to: Volker Reichelt <reichelt at igpm dot rwth-aachen dot de>
The following reply was made to PR c++/5919; it has been noted by GNATS.
From: Volker Reichelt <reichelt@igpm.rwth-aachen.de>
To: he@marel.is, gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org,
nobody@gcc.gnu.org
Cc:
Subject: Re: c++/5919: [3.2/3.3 regression] ICE when passing variable array to template function
Date: Fri, 29 Nov 2002 14:29:29 +0100
Here's a reduced testcase:
-------------------------snip here------------------
template<typename T> void foo(T);
void bar()
{
int i;
int A[i][i];
foo(A);
}
-------------------------snip here------------------
It crashes gcc 3.0.x, 3.2-branch and mainline.
gcc 2.95.3 issued a regular error message.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5919