public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/26256]  New: ignores using declaration
@ 2006-02-13  7:11 igodard at pacbell dot net
  2006-02-13  7:21 ` [Bug c++/26256] " steven at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: igodard at pacbell dot net @ 2006-02-13  7:11 UTC (permalink / raw)
  To: gcc-bugs

The code:
struct A {int* next; };
struct B {int* next; };
struct C : public A, public B { using A::next; };
void foo(C* c) { c->next = 0; }

gets you:
~/ootbc/sim$ g++ foo.cc
foo.cc: In function `void foo(C*)':
foo.cc:4: error: request for member `next' is ambiguous
foo.cc:2: error: candidates are: int*B::next
foo.cc:1: error:                 int*A::next


Compiles OK on Comeau.

Ivan


-- 
           Summary: ignores using declaration
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: igodard at pacbell dot net


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26256


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/26256] ignores using declaration
  2006-02-13  7:11 [Bug c++/26256] New: ignores using declaration igodard at pacbell dot net
@ 2006-02-13  7:21 ` steven at gcc dot gnu dot org
  2006-02-13 12:41 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: steven at gcc dot gnu dot org @ 2006-02-13  7:21 UTC (permalink / raw)
  To: gcc-bugs



-- 

steven at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
      Known to fail|                            |3.4.0 4.0.0 4.1.0 4.2.0
   Last reconfirmed|0000-00-00 00:00:00         |2006-02-13 07:21:15
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26256


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/26256] ignores using declaration
  2006-02-13  7:11 [Bug c++/26256] New: ignores using declaration igodard at pacbell dot net
  2006-02-13  7:21 ` [Bug c++/26256] " steven at gcc dot gnu dot org
@ 2006-02-13 12:41 ` pinskia at gcc dot gnu dot org
  2010-04-22 13:17 ` fabien dot chene at gmail dot com
  2010-06-04 13:13 ` fabien at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-13 12:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-02-13 12:41 -------
This is related to PR 25994.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|                            |25994


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26256


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/26256] ignores using declaration
  2006-02-13  7:11 [Bug c++/26256] New: ignores using declaration igodard at pacbell dot net
  2006-02-13  7:21 ` [Bug c++/26256] " steven at gcc dot gnu dot org
  2006-02-13 12:41 ` pinskia at gcc dot gnu dot org
@ 2010-04-22 13:17 ` fabien dot chene at gmail dot com
  2010-06-04 13:13 ` fabien at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: fabien dot chene at gmail dot com @ 2010-04-22 13:17 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from fabien dot chene at gmail dot com  2010-04-22 13:16 -------
Mine...


-- 

fabien dot chene at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fabien dot chene at gmail
                   |                            |dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26256


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/26256] ignores using declaration
  2006-02-13  7:11 [Bug c++/26256] New: ignores using declaration igodard at pacbell dot net
                   ` (2 preceding siblings ...)
  2010-04-22 13:17 ` fabien dot chene at gmail dot com
@ 2010-06-04 13:13 ` fabien at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: fabien at gcc dot gnu dot org @ 2010-06-04 13:13 UTC (permalink / raw)
  To: gcc-bugs



-- 

fabien at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |fabien at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2006-02-13 07:21:15         |2010-06-04 13:13:40
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26256


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-06-04 13:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-13  7:11 [Bug c++/26256] New: ignores using declaration igodard at pacbell dot net
2006-02-13  7:21 ` [Bug c++/26256] " steven at gcc dot gnu dot org
2006-02-13 12:41 ` pinskia at gcc dot gnu dot org
2010-04-22 13:17 ` fabien dot chene at gmail dot com
2010-06-04 13:13 ` fabien 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).