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

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Olivier Kannengieser from comment #2)
> 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;

That was Bug 90884 and is now fixed.

Reply via email to