PR c++/11687
commitf46d4a1120669aa06dc92ce32a02cfd43cb423f3
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 7 Sep 2003 04:10:10 +0000 (7 04:10 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 7 Sep 2003 04:10:10 +0000 (7 04:10 +0000)
tree36da4e4899471215b1c1ed86f5a20bf2d7365607
parentb215bae480a9a9bdc847948a87d7ba83830b85fa
PR c++/11687
* call.c (standard_conversion): Improve comments.
(perform_direct_initialization): Make sure we return an expression
of the correct type.
* typeck.c (build_static_cast): Check for ambiguity and
accessibility when performing conversions.

PR c++/11687
* g++.dg/expr/static_cast5.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71157 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/expr/static_cast5.C [new file with mode: 0644]