[PATCH] D57984: PR40642: Fix determination of whether the final statement of a statementexpression is a discarded-value expression.
Alexey Bataev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 11 17:15:30 PST 2019
ABataev added a comment.
In D57984#1394050 <https://reviews.llvm.org/D57984#1394050>, @rsmith wrote:
> @ABataev Is it intentional that we do not propagate `Allowed` through labels? For example:
>
> void f() {
> #pragma omp barrier // ok
>
> label:
> #pragma omp barrier // error, "cannot be an immediate substatement"
>
> label:
> ;
> #pragma omp barrier // ok
> }
>
>
> ?
No, it is a bug.
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D57984/new/
https://reviews.llvm.org/D57984
More information about the cfe-commits
mailing list