This is the mail archive of the
gcc-bugs@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: he at marel dot is, gcc-gnats at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: Fri, 29 Nov 2002 14:29:29 +0100
- Subject: Re: c++/5919: [3.2/3.3 regression] ICE when passing variable array to template function
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