[PATCH] C++0x, implement final on classes

Jason Merrill jason@redhat.com
Sun May 15 15:43:00 GMT 2011


On 05/14/2011 06:49 PM, Jason Merrill wrote:
> On 05/14/2011 02:19 PM, Ville Voutilainen wrote:
>> Cool, thanks! I'm not quite sure whether there are ambiguities in the
>> case
>> of elaborate-specifiers, but I suppose those can be fixed later.
>
> Good point. In the case that
> !cp_parser_next_token_starts_class_definition_p, we should rewind to
> before what we parsed as virt-specifiers.

cp_lexer_token_position and cp_lexer_set_token_position should be useful 
for this.

Jason



More information about the Gcc-patches mailing list