aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJason Merrill <jason@gcc.gnu.org>1999-11-02 02:26:47 -0500
committerJason Merrill <jason@gcc.gnu.org>1999-11-02 02:26:47 -0500
commitc4d6cee3898682503735991c01c0952f58e6d1c6 (patch)
tree890f18839c5588b7c9ee43b021600f3627435f9a /gcc
parentbf279c4e1a96684c650fcbf34db4b78b2b94dce6 (diff)
downloadgcc-c4d6cee3898682503735991c01c0952f58e6d1c6.zip
gcc-c4d6cee3898682503735991c01c0952f58e6d1c6.tar.gz
gcc-c4d6cee3898682503735991c01c0952f58e6d1c6.tar.bz2
tweak comment
From-SVN: r30340
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/class.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/cp/class.c b/gcc/cp/class.c
index 612e0ac..793e5fc 100644
--- 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. */