From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30736 invoked by alias); 4 Apr 2003 13:06:00 -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 30713 invoked by uid 71); 4 Apr 2003 13:06:00 -0000 Resent-Date: 4 Apr 2003 13:06:00 -0000 Resent-Message-ID: <20030404130600.30712.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, valentin_iancu@yahoo.com Received: (qmail 28449 invoked by uid 48); 4 Apr 2003 12:57:19 -0000 Message-Id: <20030404125719.28447.qmail@sources.redhat.com> Date: Fri, 04 Apr 2003 13:06:00 -0000 From: valentin_iancu@yahoo.com Reply-To: valentin_iancu@yahoo.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/10309: No specific error message when the base class is not defined X-SW-Source: 2003-04/txt/msg00138.txt.bz2 List-Id: >Number: 10309 >Category: c++ >Synopsis: No specific error message when the base class is not defined >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: change-request >Submitter-Id: net >Arrival-Date: Fri Apr 04 13:06:00 UTC 2003 >Closed-Date: >Last-Modified: >Originator: valentin_iancu@yahoo.com >Release: gcc version 3.2 20020927, 20020903 >Organization: >Environment: OS: Win2k / cygwin i686 ALSO linux RH 8 3.2 20020903 (Red Hat Linux 8.0 3.2-7) /netrel/src/gcc-3.2-3/configure --enable-languages=c,c++,f77,java --enable-libgcj --enable-threads=posix --with-system-zlib --enable-nls --without-included-gettext --enable-interpreter --disable-sjlj-exceptions --disable-version-specific-runtime-libs --enable-shared --build=i686-pc-linux --host=i686-pc-cygwin --target=i686-pc-cygwin --enable-haifa --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --includedir=/nonexistent/include --libexecdir=/usr/sbin >Description: gcc gives an erronated "parse" error, when it's actually a semantic error when declaring a class that has a base class undefined. The famous code: //Start the file class A : public B { }; //End the file Class B is undefined here, and the error message says: t.cpp:4: parse error before `{' token I expect here an error that says : <>! >How-To-Repeat: :-D copy & paste may be? >Fix: >Release-Note: >Audit-Trail: >Unformatted: