Eli Friedman wrote:
> +DIAG(err_stmtexpr_file_scope, ERROR,
> +     "statement expression not allowed at file scope")
>  
>  
> +  bool isFileScope = getCurFunctionOrMethodDecl() == 0;
> +  if (isFileScope) {
> +    return Diag(LPLoc, diag::err_stmtexpr_file_scope);
> +  }
> +
>  
> +// PR3062
> +int x[({10;})]; // expected-error {{illegal statement expression}}
>
>   
This looks like a mismatch between diagnostic text and test validation.
The test fails for me.

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

Reply via email to