public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/10299: parsing error: unqualified type-name from base-class in c-tor's exception specification
@ 2003-04-02 22:40 bangerth
0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2003-04-02 22:40 UTC (permalink / raw)
To: boris, boris, gcc-bugs, gcc-prs, nobody
Synopsis: parsing error: unqualified type-name from base-class in c-tor's exception specification
State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Wed Apr 2 22:40:14 2003
State-Changed-Why:
Confirmed with 2.95 ... 3.3, but fixed in 3.4
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10299
^ permalink raw reply [flat|nested] 2+ messages in thread
* c++/10299: parsing error: unqualified type-name from base-class in c-tor's exception specification
@ 2003-04-02 20:16 boris
0 siblings, 0 replies; 2+ messages in thread
From: boris @ 2003-04-02 20:16 UTC (permalink / raw)
To: gcc-gnats; +Cc: boris
>Number: 10299
>Category: c++
>Synopsis: parsing error: unqualified type-name from base-class in c-tor's exception specification
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Apr 02 20:16:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: boris@kolpackov.net
>Release: g++ (GCC) 3.3 20030331 (prerelease)
>Organization:
>Environment:
linux-i686; ./configure --enable-threads=posix
>Description:
The code below causes the following output.
bash-2.05a$ /usr/local/bin/g++ -Wall ./ExceptionSpecCtor.cpp
ExceptionSpecCtor.cpp:13: error: parse error before `)' token
ExceptionSpecCtor.cpp:14: error: declaration of `Derived::Derived()' throws
different exceptions
ExceptionSpecCtor.cpp:9: error: than previous declaration `Derived::Derived()
throw (Base::E)'
Note that if I comment c-tor out everyhting compiles fine even though foo () member functions uses semantically the same construct.
--------------------------------------
struct Base
{
class E {};
};
struct Derived : public virtual Base
{
Derived () throw (E);
void foo () throw (E);
};
Derived::Derived () throw (E)
{
}
void Derived::foo () throw (E)
{
}
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-04-02 22:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-02 22:40 c++/10299: parsing error: unqualified type-name from base-class in c-tor's exception specification bangerth
-- strict thread matches above, loose matches on Subject: below --
2003-04-02 20:16 boris
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).