This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/30624] ignores explicit qualification



------- Comment #1 from pluto at agmk dot net  2007-01-28 19:41 -------
(In reply to comment #0)
> template<typename T> struct foo { T*    bar(); };
> struct foo1 : public foo<int>, public foo<bool*> { };
> int main() { foo1 f; f.bar<int>(); }

this is an invalid code.
1). f.bar isn't a function template, so f.bar<type> is wrong.
2). f.bar() is ambiguous and compiler reports correct error.


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]