[PATCH] D46112: Allow _Atomic to be specified on incomplete types
Richard Smith - zygoloid via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat May 12 19:58:14 PDT 2018
rsmith 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)'}}
----------------
This is a bug. You need to teach `RequireCompleteType` to look through atomic types when looking for a class type to instantiate.
https://reviews.llvm.org/D46112
More information about the cfe-commits
mailing list