[Bug c++/61687] [4.10 regression] -O PASS, -O2 report error
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jul 30 17:28:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61687
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Wed Jul 30 17:27:20 2014
New Revision: 213308
URL: https://gcc.gnu.org/viewcvs?rev=213308&root=gcc&view=rev
Log:
PR c++/61659
PR c++/61687
Revert:
gcc/c-family/
* c.opt (-fuse-all-virtuals): New.
gcc/cp/
* decl2.c (mark_all_virtuals): New variable.
(maybe_emit_vtables): Check it instead of flag_devirtualize.
(cp_write_global_declarations): Set it and give helpful diagnostic
if it introduces errors.
* class.c (finish_struct_1): Check it.
Removed:
trunk/gcc/testsuite/g++.dg/template/dtor9a.C
Modified:
trunk/gcc/c-family/ChangeLog
trunk/gcc/c-family/c.opt
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/class.c
trunk/gcc/cp/decl2.c
trunk/gcc/doc/invoke.texi
trunk/gcc/testsuite/g++.dg/template/dtor9.C
More information about the Gcc-bugs
mailing list