From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3933 invoked by alias); 24 Feb 2003 23:26:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 3896 invoked by uid 71); 24 Feb 2003 23:26:01 -0000 Date: Mon, 24 Feb 2003 23:26:00 -0000 Message-ID: <20030224232601.3895.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Janis Johnson Subject: Re: c++/9820: [3.3/3.4 regression] ice in build_baselink (templates) Reply-To: Janis Johnson X-SW-Source: 2003-02/txt/msg01305.txt.bz2 List-Id: The following reply was made to PR c++/9820; it has been noted by GNATS. From: Janis Johnson To: Wolfgang Bangerth Cc: gcc-gnats@gcc.gnu.org, Janis Johnson 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 struct X { > template static int test(...); > template static int test(int *); > > static const int i = sizeof(X::template test(0)); > }; > > const int Yes = X::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.