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

Olivier Kannengieser <okannen at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |okannen at gmail dot com

--- Comment #2 from Olivier Kannengieser <okannen at gmail dot com> ---
In GCC 8.1, 

#pragma GCC diagnostic ignored "-Wctor-dtor-privacy",
does not fully disable the diagnostic message:

----------> without ignored diagnostic:

        test.cpp:2:8: warning: ‘struct S’ only defines private constructors and
has no friends [-Wctor-dtor-privacy]
        struct S{
        ^
        test.cpp:4:3: note: ‘constexpr S::S(const S&)’ is public, but requires
an existing ‘struct S’ object
        S(const S&) = default;


-----------> with ignored diagnostic:

        test.cpp:4:3: note: ‘constexpr S::S(const S&)’ is public, but requires
an existing ‘struct S’ object
        S(const S&) = default;

Reply via email to