]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
tweak comment
authorJason Merrill <jason@gcc.gnu.org>
Tue, 2 Nov 1999 07:26:47 +0000 (02:26 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 2 Nov 1999 07:26:47 +0000 (02:26 -0500)
From-SVN: r30340

gcc/cp/class.c

index 612e0acdef82971d7ed3eb1727ed6be831838c88..793e5fc23338f1a7ba022143d4be70360c9796aa 100644 (file)
@@ -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.  */