re PR c++/62115 (ICE with invalid default argument)
authorJason Merrill <jason@redhat.com>
Sun, 12 Oct 2014 01:42:31 +0000 (21:42 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Sun, 12 Oct 2014 01:42:31 +0000 (21:42 -0400)
commitd1522e8f63167d81f6bd77c5d29ffdba2e6fbe86
tree52a295c7a10b57d2b3007a653db61008c5031b70
parenta4b9dcad0837d3bc03843df6f96e6cb830550af6
re PR c++/62115 (ICE with invalid default argument)

PR c++/62115
* class.c (build_base_path): Preserve rvalueness.
* call.c (convert_like_real) [ck_base]: Let convert_to_base handle &/*.
* rtti.c (build_dynamic_cast_1): Call convert_to_reference later.

From-SVN: r216124
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/class.c
gcc/cp/rtti.c
gcc/testsuite/g++.dg/expr/cond6.C
gcc/testsuite/g++.dg/overload/defarg9.C [new file with mode: 0644]