re PR c++/17435 (Binding a temporary of derived type to reference of base)
authorMark Mitchell <mark@codesourcery.com>
Thu, 28 Oct 2004 05:17:14 +0000 (05:17 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Thu, 28 Oct 2004 05:17:14 +0000 (05:17 +0000)
commit391c4bc5af5c7fc7aa2a6fcbdf90704fbf3f0300
tree7dd36dec39291468ce49f6128a24f9fb8a5593fa
parent0da34ce409cd62755c3546f40693ee596cffddb2
re PR c++/17435 (Binding a temporary of derived type to reference of base)

PR c++/17435
* call.c (convert_like_real): Fix formatting.
(initialize_reference): When binding a temporary to a base class,
ensure that the nominal copy made is to the derived class, not the
base class.

PR c++/18140
* parser.c (cp_parser_next_token_ends_template_argument_p): Do not
include ">>".

PR c++/17435
* g++.dg/init/ref12.C: New test.

PR c++/18140
* g++.dg/template/shift1.C: New test.
* g++.dg/template/error10.C: Adjust error markers.

From-SVN: r89738
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/init/ref12.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/error10.C
gcc/testsuite/g++.dg/template/shift1.C [new file with mode: 0644]