EGCS 1.1a: unreasonable/incorrect casting restriction
Jason Merrill
jason@cygnus.com
Fri Sep 4 00:31:00 GMT 1998
>>>>> Mark Mitchell <mark@markmitchell.com> writes:
Jason> Sorry, I didn't read your mail closely enough. This is
Jason> indeed a bug.
> No, it's not. (Except that we should give a better error message.) A
> non-type template arguments must be:
> --the address of an object or function with external linkage, includ-
> ing function templates and function template-ids but excluding non-
> static class members, expressed as & id-expression where the & is
> optional if the name refers to a function or array; or
> There's no casting allowed.
That seems unnecessarily restrictive, but right you are.
Jason
More information about the Gcc-bugs
mailing list