This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14965] Missing template keyword after scope operator leading to weird error, meybe even segfault
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Apr 2004 13:47:10 -0000
- Subject: [Bug c++/14965] Missing template keyword after scope operator leading to weird error, meybe even segfault
- References: <20040415132033.14965.arno@mpi-sb.mpg.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-15 13:47 -------
3.4.0 and 3.5.0 give:
pr14965.cc: In member function `void Example<Type_traits>::f()':
pr14965.cc:28: error: non-template `Fortytwo_functor' used as template
pr14965.cc:28: error: (use `Example<Type_traits>::f()::My_C::template Fortytwo_functor' to indicate
that it is a template)
pr14965.cc:28: error: declaration does not declare anything
pr14965.cc: In member function `void Example<Type_traits>::f() [with Type_traits = Int_traits]':
pr14965.cc:37: instantiated from here
pr14965.cc:30: error: `ftf' was not declared in this scope
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |3.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14965