This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13590] [3.3/3.4 regression] Non-existing ambiguity when inhering through virtuals two identical using declarations.
- From: "giovannibajo at libero dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Jan 2004 01:05:06 -0000
- Subject: [Bug c++/13590] [3.3/3.4 regression] Non-existing ambiguity when inhering through virtuals two identical using declarations.
- References: <20040106205426.13590.boris@kolpackov.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From giovannibajo at libero dot it 2004-01-11 01:05 -------
Confirmed with Wolfgang testcase:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13590#c1
There is only one Node base class because of the virtual inheritance, so there
is only one Node::f function. There is no ambiguity. When the lookup is
performed, it should be noted that the two using declarations *do* refer to the
same declaration on the same base object.
Boris, as Wolfgang explained, your other testcase is indeed non ambigous and
correctly accepted by GCC since, at the point of call, there is only one and
only one "best" overload.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |rejects-valid
Last reconfirmed|0000-00-00 00:00:00 |2004-01-11 01:05:06
date| |
Summary|unexpected overload |[3.3/3.4 regression] Non-
|resolution |existing ambiguity when
| |inhering through virtuals
| |two identical using
| |declarations.
Target Milestone|--- |3.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13590