This is the mail archive of the gcc-prs@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


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
 
 


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