[Bug c++/85792] [8/9 Regression] #include <variant> triggers Wctor-dtor-privcay
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jun 11 22:03:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85792
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Mon Jun 11 22:02:37 2018
New Revision: 261467
URL: https://gcc.gnu.org/viewcvs?rev=261467&root=gcc&view=rev
Log:
PR c++/85792 -Wctor-dtor-privacy and inherited constructor.
* class.c (maybe_warn_about_overly_private_class): Handle inherited
constructors.
Added:
branches/gcc-8-branch/gcc/testsuite/g++.dg/warn/Wctor-dtor2.C
Modified:
branches/gcc-8-branch/gcc/cp/ChangeLog
branches/gcc-8-branch/gcc/cp/class.c
More information about the Gcc-bugs
mailing list