https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90947

--- Comment #13 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 47082
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47082&action=edit
gcc10-pr90947.patch

Here is an untested patch that fixes it for -std=c++17/-std=c++2a, though not
for C++11/14, next_initialized_field (TYPE_FIELDS (type)) for std::atomic<int>
is NULL in those cases, as that class contains no non-static data members
directly, just has __atomic_base as a base class.  The initializer has init
list
type in both cases, dunno if we don't need to treat those specially or how else
to fix C++11/14.

Reply via email to