public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/30195]  New: Using declaration doesn't work in template.
@ 2006-12-13  6:09 s__nakayama at infoseek dot jp
  2006-12-13  6:55 ` [Bug c++/30195] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: s__nakayama at infoseek dot jp @ 2006-12-13  6:09 UTC (permalink / raw)
  To: gcc-bugs

test case

template<class T> struct B
{
  void foo(T) {}
};

template<class T> struct D: B<int>, B<double>
{ 
  using B<int>::foo;
  using B<double>::foo;
  void bar() { foo(3); }
};

int main()
{
  D<int> x;
  x.bar();
  return 0;
}

$g++ cc.cpp
cc.cpp: In member function 'void D<T>::bar()':
cc.cpp:10: error: reference to 'foo' is ambiguous
cc.cpp:3: error: candidates are: void B<T>::foo(T) [with T = double]
cc.cpp:3: error:                 void B<T>::foo(T) [with T = int]
cc.cpp:10: error: reference to 'foo' is ambiguous
cc.cpp:3: error: candidates are: void B<T>::foo(T) [with T = double]
cc.cpp:3: error:                 void B<T>::foo(T) [with T = int]


-- 
           Summary: Using declaration doesn't work in template.
           Product: gcc
           Version: 4.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: s__nakayama at infoseek dot jp


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


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

* [Bug c++/30195] Using declaration doesn't work in template.
  2006-12-13  6:09 [Bug c++/30195] New: Using declaration doesn't work in template s__nakayama at infoseek dot jp
@ 2006-12-13  6:55 ` pinskia at gcc dot gnu dot org
  2006-12-30 18:42 ` gdr at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-12-13  6:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-12-13 06:55 -------
Looks 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=30195


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

* [Bug c++/30195] Using declaration doesn't work in template.
  2006-12-13  6:09 [Bug c++/30195] New: Using declaration doesn't work in template s__nakayama at infoseek dot jp
  2006-12-13  6:55 ` [Bug c++/30195] " pinskia at gcc dot gnu dot org
@ 2006-12-30 18:42 ` gdr at gcc dot gnu dot org
  2009-01-26 19:14 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: gdr at gcc dot gnu dot org @ 2006-12-30 18:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from gdr at gcc dot gnu dot org  2006-12-30 18:42 -------
indeed a bug.


-- 

gdr at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-12-30 18:42:41
               date|                            |


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


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

* [Bug c++/30195] Using declaration doesn't work in template.
  2006-12-13  6:09 [Bug c++/30195] New: Using declaration doesn't work in template s__nakayama at infoseek dot jp
  2006-12-13  6:55 ` [Bug c++/30195] " pinskia at gcc dot gnu dot org
  2006-12-30 18:42 ` gdr at gcc dot gnu dot org
@ 2009-01-26 19:14 ` pinskia at gcc dot gnu dot org
  2010-05-09 22:09 ` fabien dot chene at gmail dot com
  2010-06-07 13:17 ` fabien at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-01-26 19:14 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2009-01-26 19:13 -------
*** Bug 38962 has been marked as a duplicate of this bug. ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jm at bourguet dot org


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


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

* [Bug c++/30195] Using declaration doesn't work in template.
  2006-12-13  6:09 [Bug c++/30195] New: Using declaration doesn't work in template s__nakayama at infoseek dot jp
                   ` (2 preceding siblings ...)
  2009-01-26 19:14 ` pinskia at gcc dot gnu dot org
@ 2010-05-09 22:09 ` fabien dot chene at gmail dot com
  2010-06-07 13:17 ` fabien at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: fabien dot chene at gmail dot com @ 2010-05-09 22:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from fabien dot chene at gmail dot com  2010-05-09 22:09 -------
mine...


-- 


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


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

* [Bug c++/30195] Using declaration doesn't work in template.
  2006-12-13  6:09 [Bug c++/30195] New: Using declaration doesn't work in template s__nakayama at infoseek dot jp
                   ` (3 preceding siblings ...)
  2010-05-09 22:09 ` fabien dot chene at gmail dot com
@ 2010-06-07 13:17 ` fabien at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: fabien at gcc dot gnu dot org @ 2010-06-07 13:17 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-12-30 18:42:41         |2010-06-07 13:17:07
               date|                            |


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


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

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

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-13  6:09 [Bug c++/30195] New: Using declaration doesn't work in template s__nakayama at infoseek dot jp
2006-12-13  6:55 ` [Bug c++/30195] " pinskia at gcc dot gnu dot org
2006-12-30 18:42 ` gdr at gcc dot gnu dot org
2009-01-26 19:14 ` pinskia at gcc dot gnu dot org
2010-05-09 22:09 ` fabien dot chene at gmail dot com
2010-06-07 13:17 ` 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).