This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11501] template environmet confuses g++, and prohibits compiling valid code
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Jul 2003 16:34:57 -0000
- Subject: [Bug c++/11501] template environmet confuses g++, and prohibits compiling valid code
- References: <20030711163004.11501.eikescholz@gmx.de>
- 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=11501
bangerth at dealii dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
------- Additional Comments From bangerth at dealii dot org 2003-07-11 16:34 -------
This is a known bug. It is already fixed in development sources of gcc
and will be fixed in 3.4.
For the time being, you can work around the problem by writing
A<2> test2( test.template change_flavor<2>() );
or
A<2> test2( test.A<1>::change_flavor<2>() );
Regards
Wolfgang