projects
/
platform
/
upstream
/
linaro-gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09f0279
)
tweak comment
author
jason
<jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Nov 1999 07:26:47 +0000
(07:26 +0000)
committer
jason
<jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Nov 1999 07:26:47 +0000
(07:26 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30340
138bc75d
-0d04-0410-961f-
82ee72b054a4
gcc/cp/class.c
patch
|
blob
|
history
diff --git
a/gcc/cp/class.c
b/gcc/cp/class.c
index
612e0ac
..
793e5fc
100644
(file)
--- a/
gcc/cp/class.c
+++ b/
gcc/cp/class.c
@@
-3456,8
+3456,10
@@
finish_struct_1 (t)
if (DECL_MUTABLE_P (x) || TYPE_HAS_MUTABLE_P (type))
has_mutable = 1;
- if (! pod_type_p (type) || TYPE_PTRMEM_P (type)
- || TYPE_PTRMEMFUNC_P (type))
+ if (! pod_type_p (type)
+ /* For some reason, pointers to members are POD types themselves,
+ but are not allowed in POD structs. Silly. */
+ || TYPE_PTRMEM_P (type) || TYPE_PTRMEMFUNC_P (type))
non_pod_class = 1;
/* If any field is const, the structure type is pseudo-const. */