template specialization bug

Martin von Loewis martin@mira.isdn.cs.tu-berlin.de
Sun Sep 6 05:02:00 GMT 1998


> This is arguably a very useful extension to C++.  However, unless
> things have changed since the 1996 draft, the code below should
> probably be rejected when compiling with the -ansi flag.

Mark Mitchell has just fixed this bug. An additional comment, just for
completeness: It would have been the -pedantic flag that should have
caused rejection.

-ansi selects the conformant behaviour if the code has both a GNU and
an ISO semantics. -pedantic makes gcc diagnose ill-formed code that is
accepted under a GNU extension.

Regards,
Martin



More information about the Gcc-bugs mailing list