]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/class.c
re PR c++/25895 (wrong code with ?: and derived class pointers)
authorMark Mitchell <mark@codesourcery.com>
Sun, 22 Jan 2006 00:42:40 +0000 (00:42 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Sun, 22 Jan 2006 00:42:40 +0000 (00:42 +0000)
commit0e686aa6f7af3db2a7fc3a8f988d14d4e75282f4
tree34bf7e47e301d282bde70b7e5eec5fcaa0d764a1
parent5826ba2218e090eeb05a7e60bd88305b1dd250a1
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
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/decl.c
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/inherit/conv2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/parse/dtor7.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/crash44.C [new file with mode: 0644]