diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-11-02 07:26:47 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-11-02 07:26:47 +0000 |
commit | dc492b14955e9ba4bb8e4fb3a56d977338f80cb2 (patch) | |
tree | 890f18839c5588b7c9ee43b021600f3627435f9a | |
parent | 09f02799c8480593e1cb76aa2cffa2ca78a4f45d (diff) | |
download | gcc-dc492b14955e9ba4bb8e4fb3a56d977338f80cb2.tar.gz |
tweak comment
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30340 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/cp/class.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/cp/class.c b/gcc/cp/class.c index 612e0acdef8..793e5fc2333 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. */ |