daniel-petrovic wrote: The statement expression should always provide r-value: https://clang.llvm.org/doxygen/classclang_1_1StmtExpr.html#details
According https://en.cppreference.com/w/c/language/atomic: > Atomic properties are only meaningful for [lvalue > expressions](https://en.cppreference.com/w/c/language/value_category). > Lvalue-to-rvalue conversion (which models a memory read from an atomic > location to a CPU register) strips atomicity along with other qualifiers. To me it looks like that atomicity in StmExpr is not stripped away, but it should. E.g. : https://godbolt.org/z/WPdh9Yx5h ` `-RecoveryExpr <col:12, col:23> 'char' contains-errors `-StmtExpr <col:12, col:23> 'atomic_char':'_Atomic(char)'` https://github.com/llvm/llvm-project/pull/106751 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits