> I'm not convinced that this is the right fix, especially because 
> ParseOptionalCXXScopeSpecifier *should* eventually be parsing
>
>        decltype(blah)::
>
> as a nested-name-specifier.

Ah, so it should.

> Why not just diagnose a non-empty nested-name-specifier when we're parsing a 
> decltype()?

Committed this change as r142935, including a FixIt to remove the
spurious nested-name-specifier.

Thanks,
- David

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to