https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109339
--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> --- __attribute__((__access__(__none__, 2))) on the ctor works, no need to add pragmas.
jakub at gcc dot gnu.org via Gcc-bugs Fri, 31 Mar 2023 05:17:44 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109339
--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> --- __attribute__((__access__(__none__, 2))) on the ctor works, no need to add pragmas.