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++/20816] Can't find member function of template


------- Additional Comments From igodard at pacbell dot net  2005-04-07 22:11 -------
Well, I now see why there's an error: the call is at global scope. So please
change this report to a complaint about the diagnostic. Reduced case:

template<int> struct foo { void bar() {} };
foo<3> f; f.bar();

which gets you:
~/ootbc/members/src$ g++ foo.cc
foo.cc:3: error: expected constructor, destructor, or type conversion before '.'
token
foo.cc:3: error: expected `,' or `;' before '.' token

(which sure had me confused :-)

-- 


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


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