re PR c++/11332 (Spurious error with casts in ?: expression)
authorMark Mitchell <mark@codesourcery.com>
Fri, 27 Jun 2003 16:24:49 +0000 (16:24 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 27 Jun 2003 16:24:49 +0000 (16:24 +0000)
commit3a73bcc6870738923820d08fbcd62774d77b4936
treef0cc7b18d16832c35d66b6a6e97d2508d9cdf9da
parent560d4c592f6f414f6a17a9902b664933930c75fd
re PR c++/11332 (Spurious error with casts in ?: expression)

PR c++/11332
* typeck.c (build_static_cast): Avoid returning expressions with
reference type.

PR c++/11332
* g++.dg/expr/static_cast2.C: New test.

From-SVN: r68580
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/expr/static_cast2.C [new file with mode: 0644]