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++/17000] parse error calling member template function of non-lvalue from within template class member



------- Comment #9 from matt at galloway dot me dot uk  2007-03-18 11:01 -------
(In reply to comment #8)
> The work around is doing:
>         get_a().template func2 <int>();
> 
> 
> Which tells the compiler for sure func2 is a template.
> 

Thanks, yeh I figured that out just now. Should it happen like this though?
Surely the compiler should be able to work out it's a template and therefore
not need the qualification?


-- 


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


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