This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]