aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/cp-tree.h
diff options
context:
space:
mode:
authorOlivier Goffart <olivier@woboq.com>2011-11-04 17:15:02 +0000
committerJason Merrill <jason@gcc.gnu.org>2011-11-04 13:15:02 -0400
commitec3ebf4556b47fae3d51c12e0d8f115302d8ef15 (patch)
tree887cd3dc67c05e4d28edfc75dcdcfbbb1087181b /gcc/cp/cp-tree.h
parente98925f693e27eed776eb7ee8191003a97981d21 (diff)
downloadgcc-ec3ebf4556b47fae3d51c12e0d8f115302d8ef15.zip
gcc-ec3ebf4556b47fae3d51c12e0d8f115302d8ef15.tar.gz
gcc-ec3ebf4556b47fae3d51c12e0d8f115302d8ef15.tar.bz2
re PR c++/50965 (C++11 Non static member initializer are not run when class is initialized with {})
PR c++/50965 * class.c (check_field_decls): NSDMI makes a class non-aggregate. Co-Authored-By: Jason Merrill <jason@redhat.com> From-SVN: r180965
Diffstat (limited to 'gcc/cp/cp-tree.h')
-rw-r--r--gcc/cp/cp-tree.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h
index dc52d29..c941abc 100644
--- a/gcc/cp/cp-tree.h
+++ b/gcc/cp/cp-tree.h
@@ -3205,8 +3205,9 @@ more_aggr_init_expr_args_p (const aggr_init_expr_arg_iterator *iter)
/* [dcl.init.aggr]
- An aggregate is an array or a class with no user-declared
- constructors, no private or protected non-static data members, no
+ An aggregate is an array or a class with no user-provided
+ constructors, no brace-or-equal-initializers for non-static data
+ members, no private or protected non-static data members, no
base classes, and no virtual functions.
As an extension, we also treat vectors as aggregates. Keep these