From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21339 invoked by alias); 8 Jun 2004 02:11:35 -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 21321 invoked by uid 48); 8 Jun 2004 02:11:33 -0000 Date: Tue, 08 Jun 2004 02:11:00 -0000 From: "giovannibajo at libero dot it" To: gcc-bugs@gcc.gnu.org Message-ID: <20040608021123.15865.giovannibajo@libero.it> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/15865] New: Invalid variable definition through the constructor name X-Bugzilla-Reason: CC X-SW-Source: 2004-06/txt/msg00857.txt.bz2 List-Id: The following code should be rejected but it is not: ---------------------------------- struct A {}; A::A a; ---------------------------------- and the same applies for the template case: ---------------------------------- template struct X {}; X<0>::X<0> x; ---------------------------------- -- Summary: Invalid variable definition through the constructor name Product: gcc Version: 3.5.0 Status: UNCONFIRMED Keywords: accepts-invalid Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: giovannibajo at libero dot it CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15865