init.c (build_value_init_noctor): Handle REFERENCE_TYPE at top level.
authorJason Merrill <jason@redhat.com>
Thu, 7 Apr 2011 21:47:17 +0000 (17:47 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 7 Apr 2011 21:47:17 +0000 (17:47 -0400)
commit351ccf209e1e4495534044e3cd77ee03f32bdda2
tree1082ced58f08d7332de2d310c6d76893c8dee5c6
parent2b8497cd7aef2697b00b7e57ae3ea787f7cbe251
init.c (build_value_init_noctor): Handle REFERENCE_TYPE at top level.

* init.c (build_value_init_noctor): Handle REFERENCE_TYPE at top
level.
(perform_member_init): Not here.
* typeck2.c (build_functional_cast): Limit REFERENCE_TYPE special
case to templates.
(abstract_virtuals_error_sfinae): Remove RESULT_DECL special case.

From-SVN: r172142
gcc/cp/ChangeLog
gcc/cp/init.c
gcc/cp/typeck2.c