From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4989 invoked by alias); 18 May 2003 17:28:32 -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 4970 invoked by uid 48); 18 May 2003 17:28:32 -0000 Date: Sun, 18 May 2003 17:28:00 -0000 Message-ID: <20030518172832.4969.qmail@sources.redhat.com> To: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, giovannibajo@libero.it, nobody@gcc.gnu.org From: ehrhardt@mathematik.uni-ulm.de Reply-To: ehrhardt@mathematik.uni-ulm.de, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, giovannibajo@libero.it, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: c++/10716: ICE in tree check: expected var_decl, have error_mark in tsubst_decl, at cp/pt.c:5987 X-SW-Source: 2003-05/txt/msg02035.txt.bz2 List-Id: Synopsis: ICE in tree check: expected var_decl, have error_mark in tsubst_decl, at cp/pt.c:5987 State-Changed-From-To: open->analyzed State-Changed-By: cae State-Changed-When: Sun May 18 17:28:32 2003 State-Changed-Why: Redux: template struct A { }; template struct B { typedef int car; }; template struct C { template typename B::result>::car f (); }; C x; I get a different message with 3.3-release due to a missing --enable-checking. This redux also ICEs 3.4 but at a different line number. Output of 3.3 WITHOUT treecheck output: 10716.cc: In instantiation of `C': 10716.cc:10: instantiated from here 10716.cc:8: error: `INVALID' was not declared in this scope 10716.cc:8: confused by earlier errors, bailing out Output of somewhat dated 3.4 WITH tree checking: 10716.cc:8: error: `INVALID' has not been declared 10716.cc:8: error: template argument 1 is invalid 10716.cc:8: internal compiler error: tree check: expected class 't', have 'x' ( error_mark) in make_typename_type, at cp/decl.c:5498 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. regards Christian http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10716