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++/9820: [3.3/3.4 regression] ice in build_baselink (templates)


The following reply was made to PR c++/9820; it has been noted by GNATS.

From: Wolfgang Bangerth <bangerth at ticam dot utexas dot edu>
To: gcc-gnats at gcc dot gnu dot org, Janis Johnson <janis187 at us dot ibm dot com>
Cc:  
Subject: Re: c++/9820: [3.3/3.4 regression] ice in build_baselink (templates)
Date: Mon, 24 Feb 2003 17:13:26 -0600 (CST)

 Here's a smaller testcase:
 ------------------------
 template <typename T> struct X {
     template<typename> static int test(...);
     template<typename> static int test(int *);
 
     static const int i = sizeof(X<T>::template test<int>(0));
 };
 
 const int Yes = X<int>::i;
 ------------------------
 
 However, Janis, I can't seem to create a testcase that is compilable by 
 3.2 and yet generates the ICE in 3.3 and 3.4. Why don't you just grep the 
 output of the compiler?
 
 W.
 
 -------------------------------------------------------------------------
 Wolfgang Bangerth             email:            bangerth at ticam dot utexas dot edu
                               www: http://www.ticam.utexas.edu/~bangerth/
 
 


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