re PR c++/25895 (wrong code with ?: and derived class pointers)
PR c++/25895 * class.c (build_base_path): Generate a NOP_EXPR instead of a COMPONENT_REF if the base and derived classes are at the same address. PR c++/25856 * decl.c (begin_destructor_body): Robustify. PR c++/25858 * parser.c (cp_parser_direct_declarator): Robustify. PR c++/25895 * g++.dg/inherit/conv2.C: New test. PR c++/25856 * g++.dg/parse/dtor7.C: New test. PR c++/25858 * g++.dg/template/crash44.C: New test. From-SVN: r110084
Showing
- gcc/cp/ChangeLog 13 additions, 0 deletionsgcc/cp/ChangeLog
- gcc/cp/class.c 12 additions, 4 deletionsgcc/cp/class.c
- gcc/cp/decl.c 17 additions, 12 deletionsgcc/cp/decl.c
- gcc/cp/parser.c 16 additions, 14 deletionsgcc/cp/parser.c
- gcc/testsuite/ChangeLog 11 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/g++.dg/inherit/conv2.C 22 additions, 0 deletionsgcc/testsuite/g++.dg/inherit/conv2.C
- gcc/testsuite/g++.dg/parse/dtor7.C 4 additions, 0 deletionsgcc/testsuite/g++.dg/parse/dtor7.C
- gcc/testsuite/g++.dg/template/crash44.C 7 additions, 0 deletionsgcc/testsuite/g++.dg/template/crash44.C
Loading
Please register or sign in to comment