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: Janis Johnson <janis187 at us dot ibm dot com>
- To: nobody at gcc dot gnu dot org
- Cc: gcc-prs at gcc dot gnu dot org,
- Date: 24 Feb 2003 23:26:01 -0000
- Subject: Re: c++/9820: [3.3/3.4 regression] ice in build_baselink (templates)
- Reply-to: Janis Johnson <janis187 at us dot ibm dot com>
The following reply was made to PR c++/9820; it has been noted by GNATS.
From: Janis Johnson <janis187 at us dot ibm dot com>
To: Wolfgang Bangerth <bangerth at ticam dot utexas dot edu>
Cc: gcc-gnats at gcc dot gnu dot org, Janis Johnson <janis187 at us dot ibm dot com>
Subject: Re: c++/9820: [3.3/3.4 regression] ice in build_baselink (templates)
Date: Mon, 24 Feb 2003 15:26:40 -0800
On Mon, Feb 24, 2003 at 05:13:26PM -0600, Wolfgang Bangerth wrote:
>
> 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?
Yes, that's what I normally do for ice-on-illegal code. If
the submitter's original test case is supposed to compile
successfully with earlier versions of GCC, I might end up
finding a patch that's not relevant to the submitter's ICE.