This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/30434] wrong parse of exception declaration list in virtual functions with multiple inheritence
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Jan 2007 04:46:48 -0000
- Subject: [Bug c++/30434] wrong parse of exception declaration list in virtual functions with multiple inheritence
- References: <bug-30434-13902@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pinskia at gcc dot gnu dot org 2007-01-14 04:46 -------
Since in this case we have:
struct a1
struct a2
both of which have virtualfunction with no exception-specification
and then we have
struct b : a1
struct c: a2
which have virtutalfunction with an exception-specification
and now we have:
struct d : b, c
which have a virutualfunction with a differnet exception-specification from b
or c
I think this case is invalid because the base class of D has a different
exception-specification for get_obj_type
>I have no error when D only inherits from either B or C.
I do with both 4.0.4 and the trunk so that would be a bug in the compiler you
are using I think.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30434