re PR ipa/61659 (Extra undefined symbol because of devirtualization)
PR c++/61659 PR c++/61687 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. * decl.c (grokdeclarator): Clear virtualp after 'virtual auto' error. From-SVN: r212436
Showing
gcc/testsuite/g++.dg/template/dtor9a.C
0 → 100644
Please
register
or
sign in
to comment