From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15346 invoked by alias); 5 Nov 2002 14:46:04 -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 15331 invoked by uid 71); 5 Nov 2002 14:46:03 -0000 Date: Tue, 05 Nov 2002 06:46:00 -0000 Message-ID: <20021105144603.15330.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Reichelt Subject: Re: c++/8442: Wrongful compiler error - file available Reply-To: Reichelt X-SW-Source: 2002-11/txt/msg00213.txt.bz2 List-Id: The following reply was made to PR c++/8442; it has been noted by GNATS. From: Reichelt To: jcab@JCABs-Rumblings.com, gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org Cc: Subject: Re: c++/8442: Wrongful compiler error - file available Date: Tue, 5 Nov 2002 16:33:19 +0100 Hi, here's a little cleaned-up testcase: --------------------------------snip here----------------------------- template struct A {}; template struct B { template struct C {}; template A > foo(U); }; B b; --------------------------------snip here----------------------------- With gcc 2.95.x and gcc 3.0.x the code compiles fine. With mainline we get the following ICE PR8442.cc: In instantiation of `B': PR8442.cc:9: instantiated from here PR8442.cc:6: error: type/value mismatch at argument 1 in template parameter list for `template struct A' PR8442.cc:6: error: expected a type, got `C' PR8442.cc:6: internal compiler error: tree check: expected var_decl, have error_mark in tsubst_decl, at cp/pt.c:5793 Please submit a full bug report, [etc.] which is replaced by an "confused by earlier errors" on the 3.2 branch (checked on i686-pc-linux-gnu and mips-sgi-irix6.5). Since this a regression, I rated the PR "high priority". Greetings, Volker http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8442