[RFH / Patch] PR 51222

Jason Merrill jason@redhat.com
Sat Apr 28 03:24:00 GMT 2012


On 04/27/2012 09:42 PM, Paolo Carlini wrote:
> In particular about the exact meaning of the FIXME? More generally, is
> the issue here matter of compile-time optimization? Like we want to save
> work when we actually *know* the type even in template context? (then
> looks like type_dependent_expression_p isn't really what we want...)

It's more of a mangling issue.  If the type is instantiation-dependent, 
we should mangle it as written; if not, we mangle the real type. 
Currently we don't test for instantiation-dependence, so we get this 
wrong; your change would go too far in the other direction.

Jason



More information about the Gcc-patches mailing list