This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12823] Cannot call member function template of nested class inside template class
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Oct 2003 14:43:14 -0000
- Subject: [Bug c++/12823] Cannot call member function template of nested class inside template class
- References: <20031029131531.12823.bsamwel@xs4all.nl>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12823
bangerth at dealii dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
------- Additional Comments From bangerth at dealii dot org 2003-10-29 14:43 -------
No, this is invalid code. The type of b is template dependent, so
you need to use the following syntax (which does compile with
gcc):
b.template bar<0>(); // (This is line 15.)
W.