This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11867] [3.3/3.4 Regression] static_cast ignores ambiguity
- 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: 9 Aug 2003 12:52:19 -0000
- Subject: [Bug c++/11867] [3.3/3.4 Regression] static_cast ignores ambiguity
- References: <20030809122531.11867.alfred.minarik.1@aon.at>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11867
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |critical
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |accepts-invalid
Priority|P2 |P1
Last reconfirmed|0000-00-00 00:00:00 |2003-08-09 12:52:18
date| |
Summary|static_cast ignores |[3.3/3.4 Regression]
|ambiguity |static_cast ignores
| |ambiguity
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-08-09 12:52 -------
GCC 3.2.3 rejected this:
pr11867.cc: In function `void ambig()':
pr11867.cc:10: invalid static_cast from type `ambig()::A*' to type `ambig()::D*
'
pr11867.cc:12: `ambig()::A' is an ambiguous base of `ambig()::D'
pr11867.cc:15: `ambig()::A' is an ambiguous base of `ambig()::D'
Where 3.3.1 (20030707) and the mainline (20030808) does not.
>From Phil's regression hunter: Search converges between 2003-06-25-trunk (#324) and 2003-
06-26-trunk (#325): Search converges between 2003-06-25-3.3 (#149) and 2003-06-26-3.3
(#150).