From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9386 invoked by alias); 18 Jan 2005 10:49:32 -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 9280 invoked by uid 48); 18 Jan 2005 10:49:22 -0000 Date: Tue, 18 Jan 2005 10:49:00 -0000 From: "reichelt at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org Message-ID: <20050118104920.19502.reichelt@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/19502] New: duplicate diagnostic for invalid template constant parameter X-Bugzilla-Reason: CC X-SW-Source: 2005-01/txt/msg02392.txt.bz2 List-Id: Since gcc 3.3.3 the compiler issues a duplicate diagnostic for the following invalid code snippet (before we got an ICE): ========================================= template struct A { template struct B; }; A a; ========================================= bug.cc: In instantiation of 'A': bug.cc:6: instantiated from here bug.cc:3: error: 'void' is not a valid type for a template constant parameter bug.cc:3: error: 'void' is not a valid type for a template constant parameter -- Summary: duplicate diagnostic for invalid template constant parameter Product: gcc Version: 4.0.0 Status: UNCONFIRMED Keywords: diagnostic Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: reichelt at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19502