This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/30624] New: ignores explicit qualification
- From: "igodard at pacbell dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Jan 2007 19:30:40 -0000
- Subject: [Bug c++/30624] New: ignores explicit qualification
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
template<typename T> struct foo { T* bar(); };
struct foo1 : public foo<int>, public foo<bool*> { };
int main() { foo1 f; f.bar<int>(); }
gets you:
~/foo$ g++ foo.cc
foo.cc: In function 'int main()':
foo.cc:3: error: request for member 'bar' is ambiguous
foo.cc:1: error: candidates are: T* foo<T>::bar() [with T = bool*]
foo.cc:1: error: T* foo<T>::bar() [with T = int]
foo.cc:3: error: expected primary-expression before 'int'
foo.cc:3: error: expected `;' before 'int'
--
Summary: ignores explicit qualification
Product: gcc
Version: 4.1.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=30624