re PR c++/12163 (static_cast + explicit ctor regression)
authorMark Mitchell <mark@codesourcery.com>
Fri, 5 Sep 2003 18:04:21 +0000 (18:04 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 5 Sep 2003 18:04:21 +0000 (18:04 +0000)
commitceeae2d125cce0f03ad7d47f62c3f82ff2af78fd
tree6985ef10a548d692a06e263e44d798c0302163e0
parent3f8dc57bd287c4086eaa9a2b9d185ec22b459fb7
re PR c++/12163 (static_cast + explicit ctor regression)

PR c++/12163
* call.c (perform_direct_initialization): Correct logic for
direct-initialization of a class type.

PR c++/12146
* pt.c (lookup_template_function): Robustify.

PR c++/12163
* g++.dg/expr/static_cast4.C: New test.

PR c++/12146
* g++.dg/template/crash9.C: New test.

From-SVN: r71115
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/expr/static_cast4.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/crash9.C [new file with mode: 0644]