This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/9820: [3.3/3.4 regression] ice in build_baselink (templates)
- From: Wolfgang Bangerth <bangerth at ticam dot utexas dot edu>
- To: nobody at gcc dot gnu dot org
- Cc: gcc-prs at gcc dot gnu dot org,
- Date: 24 Feb 2003 23:16:00 -0000
- Subject: Re: c++/9820: [3.3/3.4 regression] ice in build_baselink (templates)
- Reply-to: Wolfgang Bangerth <bangerth at ticam dot utexas dot edu>
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/