This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++: template in namespace
>>>>> 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.
> I haven't located the right spot, yet, but I felt it is better to not
> complain about ill-formed code but to complain about correct one; at
^^^
> least for 2.95.1.
If you mean "than" where you wrote "but", I agree. FWIW, my hierarchy of
severity of bugs, from worst to least:
Silently doing the wrong thing for correct code
Rejecting correct code
Silently doing something broken for incorrect code
Ignoring incorrect code
Crashing on incorrect code without an error message
Giving the wrong error
Crashing on incorrect code after giving a valid error
Jason