Hi,

On 12/15/2014 11:25 PM, Jason Merrill wrote:
Why does error recovery fail? I would expect to be able to just drop the 'friend' and treat it as a normal non-static data member.
I agree, that was my first thought too. Unfortunately we do non-trivial preparatory work *before* calling grokdeclarator based on ds_friend which aren't reverted by locally resetting friendp in grokdeclarator, and, eg, build_this_parm gets a null type even if declspecs->locations[ds_friend] itself is reset right at the beginning of grokdeclarator. I'll try the further investigate the above...

Thanks,
Paolo.

Reply via email to