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


------- Additional Comments From bangerth at dealii dot org  2004-08-12 13:29 -------
I would concur, but am not quite sure. It would seem as if 
get_a() is a non-dependent call producing just an object of 
type 'a', so one should be able to simply call a member 
template as you do. What gcc expects, instead, is that you write 
  get_a().template func2<int> (); 
 
Giovanni, what do you say? 
 
W. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |giovannibajo at gcc dot gnu
                   |                            |dot org


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]