[Bug c++/11501] template environmet confuses g++, and prohibits compiling valid code

bangerth at dealii dot org gcc-bugzilla@gcc.gnu.org
Fri Jul 11 16:34:00 GMT 2003


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



More information about the Gcc-bugs mailing list