[PATCH] D46112: Allow _Atomic to be specified on incomplete types

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun May 13 12:57:59 PDT 2018


aaron.ballman marked an inline comment as done.
aaron.ballman added inline comments.


================
Comment at: test/SemaCXX/atomic-type.cpp:5
 template<typename T> struct atomic {
-  _Atomic(T) value;
+  _Atomic(T) value; // expected-error {{field has incomplete type '_Atomic(user<int>::inner)'}}
 
----------------
rsmith wrote:
> This is a bug. You need to teach `RequireCompleteType` to look through atomic types when looking for a class type to instantiate.
Thank you for the explanation -- I think I've addressed this in the latest patch.


https://reviews.llvm.org/D46112





More information about the cfe-commits mailing list