OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* cp-tree.h (struct lang_type): Added non_zero_init.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
cp
/
class.c
diff --git
a/gcc/cp/class.c
b/gcc/cp/class.c
index
98f32dc
..
64b528a
100644
(file)
--- a/
gcc/cp/class.c
+++ b/
gcc/cp/class.c
@@
-3405,6
+3405,9
@@
check_field_decls (t, access_decls, empty_p,
to be allowed in POD structs. */
CLASSTYPE_NON_POD_P (t) = 1;
+ if (! zero_init_p (type))
+ CLASSTYPE_NON_ZERO_INIT_P (t) = 1;
+
/* If any field is const, the structure type is pseudo-const. */
if (CP_TYPE_CONST_P (type))
{