From 1c682d060b721d35ce3438e5d184a148e91599c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabien=20Ch=C3=AAne?= Date: Mon, 9 May 2011 19:42:21 +0200 Subject: Fix PR C++/48859 From-SVN: r173583 --- gcc/cp/init.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc/cp/init.c') diff --git a/gcc/cp/init.c b/gcc/cp/init.c index 7a7379e..3eb804d 100644 --- a/gcc/cp/init.c +++ b/gcc/cp/init.c @@ -1915,6 +1915,9 @@ diagnose_uninitialized_cst_or_ref_member_1 (tree type, tree origin, field_type = strip_array_types (TREE_TYPE (field)); + if (type_has_user_provided_constructor (field_type)) + continue; + if (TREE_CODE (field_type) == REFERENCE_TYPE) { ++ error_count; -- cgit v1.1