From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20574 invoked by alias); 25 Apr 2003 13:46:01 -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 20560 invoked by uid 71); 25 Apr 2003 13:46:01 -0000 Date: Fri, 25 Apr 2003 13:46:00 -0000 Message-ID: <20030425134601.20559.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Gabriel Dos Reis Subject: Re: c++/10497: Bug #909 not closed : Spurious error using nested classes in constructor calls Reply-To: Gabriel Dos Reis X-SW-Source: 2003-04/txt/msg01092.txt.bz2 List-Id: The following reply was made to PR c++/10497; it has been noted by GNATS. From: Gabriel Dos Reis To: have@ann.jussieu.fr Cc: gcc-gnats@gcc.gnu.org Subject: Re: c++/10497: Bug #909 not closed : Spurious error using nested classes in constructor calls Date: 25 Apr 2003 15:29:46 +0200 have@ann.jussieu.fr writes: | >Number: 10497 | >Category: c++ | >Synopsis: Bug #909 not closed : Spurious error using nested classes in constructor calls | >Confidential: no | >Severity: serious | >Priority: medium | >Responsible: unassigned | >State: open | >Class: sw-bug | >Submitter-Id: net | >Arrival-Date: Fri Apr 25 13:26:00 UTC 2003 | >Closed-Date: | >Last-Modified: | >Originator: have@ann.jussieu.fr | >Release: 2.95, 3.0, 3.2, 3.3 | >Organization: | >Environment: | Linux | >Description: | Bug #909 does not seem to be fixed even if it is closed. | With g++ > 3.0, the error becomes: | " error: type specifier omitted for parameter `Z' " Did you try mainline a.k.a GCC-3.4 (experimental)? I think this is a problem with the old parser which is trying to parse this | A a(A::Nested(i), Z); // ERROR: type specifier omitted for parameter as a function declaration and chocks by the time it encounters 'Z'. | A e(A::Nested(i)); // OK the old parser can correctly parse 'e' as a declaration of a function taking an 'A::Nested' and returning an 'A'. -- Gaby