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
  2004-01-06 21:10 ` [Bug c++/13590] " bangerth at dealii dot org
                   ` (17 more replies)
  0 siblings, 18 replies; 20+ 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] 20+ messages in thread
[parent not found: <bug-13590-5779@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2005-12-10 13:17 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-06 20:54 [Bug c++/13590] New: unexpected overload resolution boris at kolpackov dot net
2004-01-06 21:10 ` [Bug c++/13590] " bangerth at dealii dot org
2004-01-06 21:56 ` boris at kolpackov dot net
2004-01-06 23:00 ` bangerth at dealii dot org
2004-01-06 23:15 ` boris at kolpackov dot net
2004-01-07 14:01 ` bangerth at dealii dot org
2004-01-11  1:05 ` [Bug c++/13590] [3.3/3.4 regression] Non-existing ambiguity when inhering through virtuals two identical using declarations giovannibajo at libero dot it
2004-01-11  1:13 ` pinskia at gcc dot gnu dot org
2004-03-05 14:44 ` [Bug c++/13590] [3.3/3.4/3.5 " nathan at gcc dot gnu dot org
2004-03-05 14:56 ` giovannibajo at libero dot it
2004-03-09  7:40 ` mmitchel at gcc dot gnu dot org
2004-06-10 20:10 ` jason at gcc dot gnu dot org
2004-06-10 22:19 ` [Bug c++/13590] [3.3/3.4/3.5 regression] [DR39] " pinskia at gcc dot gnu dot org
2004-06-18 23:46 ` mmitchel at gcc dot gnu dot org
2004-08-03 14:31 ` boris at kolpackov dot net
2004-08-14  7:21 ` pinskia at gcc dot gnu dot org
2004-10-19 11:37 ` [Bug c++/13590] [3.3/3.4/4.0 " pinskia at gcc dot gnu dot org
2005-08-31 19:34 ` [Bug c++/13590] " redi at gcc dot gnu dot org
2005-08-31 19:35 ` pinskia at gcc dot gnu dot org
     [not found] <bug-13590-5779@http.gcc.gnu.org/bugzilla/>
2005-12-10 13:17 ` gcc-bugzilla at kayari 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).