public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/13590] New: unexpected overload resolution
@ 2004-01-06 20:54 boris at kolpackov dot net
2005-08-31 19:34 ` [Bug c++/13590] [DR39] Non-existing ambiguity when inhering through virtuals two identical using declarations redi at gcc dot gnu dot org
2005-08-31 19:35 ` pinskia at gcc dot gnu dot org
0 siblings, 2 replies; 3+ messages in thread
From: boris at kolpackov dot net @ 2004-01-06 20:54 UTC (permalink / raw)
To: gcc-bugs
$ cat >test.cpp
struct Edge
{
};
struct Node
{
void f (Edge&);
};
struct AE : virtual Edge
{
};
struct AN : virtual Node
{
void f (AE&);
using Node::f;
};
struct BN : virtual Node
{
using Node::f;
};
struct CN : virtual AN, virtual BN
{
};
void f ()
{
AE e;
CN n;
n.f (e);
}
$ g++ --version
g++ (GCC) 3.3.3 20031229 (prerelease) (Debian)
$ g++ -c ./test.cpp
test.cpp: In function `void f()':
test.cpp:34: error: request for member `f' is ambiguous
test.cpp:7: error: candidates are: void Node::f(Edge&)
test.cpp:7: error: void Node::f(Edge&)
test.cpp:17: error: void AN::f(AE&)
$
--
Summary: unexpected overload resolution
Product: gcc
Version: 3.3.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: boris at kolpackov dot net
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i386-gnu-lnux
GCC host triplet: i386-gnu-lnux
GCC target triplet: i386-gnu-lnux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13590
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-12-10 13:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-13590-5779@http.gcc.gnu.org/bugzilla/>
2005-12-10 13:17 ` [Bug c++/13590] [DR39] Non-existing ambiguity when inhering through virtuals two identical using declarations gcc-bugzilla at kayari dot org
2004-01-06 20:54 [Bug c++/13590] New: unexpected overload resolution boris at kolpackov dot net
2005-08-31 19:34 ` [Bug c++/13590] [DR39] Non-existing ambiguity when inhering through virtuals two identical using declarations redi at gcc dot gnu dot org
2005-08-31 19:35 ` pinskia at gcc dot gnu dot org
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).