Applied, thanks. Note that your dg-error regexp doesn't make much sense:
// { dg-error "expected type-specifier before 'final'||expected ';'||declaration doesn't declare anything" }
Regular expression "or" uses a single |, so this ends up being a long way of writing
// { dg-error "" }I adjusted the dg-error lines to check only for the "expected type-specifier" error, and used dg-prune-output to discard the extra errors.
Jason