public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/10309: No specific error message when the base class is not defined
@ 2003-04-04 13:06 valentin_iancu
  0 siblings, 0 replies; 2+ messages in thread
From: valentin_iancu @ 2003-04-04 13:06 UTC (permalink / raw)
  To: gcc-gnats


>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 : <<base class undefined>>!
>How-To-Repeat:
:-D copy & paste may be?
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: c++/10309: No specific error message when the base class is not defined
@ 2003-04-04 17:33 bangerth
  0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2003-04-04 17:33 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, valentin_iancu

Synopsis: No specific error message when the base class is not defined

State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Fri Apr  4 17:33:26 2003
State-Changed-Why:
    The new parser says
    g/x> /home/bangerth/bin/gcc-3.4-pre/bin/gcc -c x.cc  -O2
    x.cc:3: error: expected class-name
    
    W.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10309


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-04-04 17:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-04 13:06 c++/10309: No specific error message when the base class is not defined valentin_iancu
2003-04-04 17:33 bangerth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).