From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24641 invoked by alias); 23 Jan 2004 05:28:37 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 24628 invoked by uid 48); 23 Jan 2004 05:28:32 -0000 Date: Fri, 23 Jan 2004 05:28:00 -0000 Message-ID: <20040123052832.24627.qmail@sources.redhat.com> From: "pinskia at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040123050818.13825.mps@sonartech.com.au> References: <20040123050818.13825.mps@sonartech.com.au> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/13825] template instantiation fails due to substituting the wrong type for a parameter X-Bugzilla-Reason: CC X-SW-Source: 2004-01/txt/msg02889.txt.bz2 List-Id: ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-01-23 05:28 ------- No the code is invalid, yes the error message sucks but that has been fixed for 3.4: input.cc:16: error: non-template `B1' used as template input.cc:16: error: (use `B >::template B1' to indicate that it is a template) input.cc:16: error: declaration does not declare anything input.cc: In constructor `C::C()': input.cc:18: error: class `C' does not have any field named `_b1' Basically this line: typename B ::B1 _b1; should be: typename B ::template B1 _b1; -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13825