On 06/23/2011 05:47 PM, Jason Merrill wrote:
Indeed. The code is using DECL_NAME in templates so that tsubst can
look them up again by name, but as we see in this PR that can't work
if the field has no name. We need a different strategy for handling
anonymous aggregates nested in other anonymous aggregates in templates.
Ok, then, from what you saying I understand that it should be possible
to actually construct a reject-valid or an ice-on-valid in this area,
isn't just about improving the diagnostic, that is only the tip of the
iceberg, so to speak. I guess it's not for me, at this time...
Paolo.