diff options
author | Fabien ChĂȘne <fabien@gcc.gnu.org> | 2011-05-09 19:42:21 +0200 |
---|---|---|
committer | Fabien ChĂȘne <fabien@gcc.gnu.org> | 2011-05-09 19:42:21 +0200 |
commit | 1c682d060b721d35ce3438e5d184a148e91599c9 (patch) | |
tree | e39462e9bc904dc0a764e8e128f8aae151b6ccc4 /gcc/cp/init.c | |
parent | 03808d178a46df619f8470211c4cff9946a51fd4 (diff) | |
download | gcc-1c682d060b721d35ce3438e5d184a148e91599c9.zip gcc-1c682d060b721d35ce3438e5d184a148e91599c9.tar.gz gcc-1c682d060b721d35ce3438e5d184a148e91599c9.tar.bz2 |
Fix PR C++/48859
From-SVN: r173583
Diffstat (limited to 'gcc/cp/init.c')
-rw-r--r-- | gcc/cp/init.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |