C++: template in namespace

Mark Mitchell mark@codesourcery.com
Tue Aug 31 22:45:00 GMT 1999


>>>>> "Martin" == Martin v Loewis <martin@mira.isdn.cs.tu-berlin.de> writes:

    >> /* We have not yet called push_template_decl to turn the
    >> FUNCTION_DECL into a TEMPLATE_DECL, so the declarations won't
    >> match.  But, we'll check later, when ...?  */
    >> 
    >> I don't know what comes in the `when', but I'm sure you had
    >> something in mind.

    Martin> I haven't located the right spot, yet, but I felt it is
    Martin> better to not complain about ill-formed code but to
    Martin> complain about correct one; at least for 2.95.1.

Your patch is OK for both branches.  But, on the mainline, you should
check in XFAIL'd test-cases for the cases we're not going to be
checking.  And, of course, there should be no new test-cases checked
in on the branch; the testsuite was frozen at brach-time.

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com



More information about the Gcc-bugs mailing list