diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-02-18 00:00:29 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-02-18 00:00:29 +0000 |
commit | bdea04153f392e6750c731597d7c727b6632490f (patch) | |
tree | b1df6ce88ec335187d7ab55035afb765383f2829 /gcc/cp/init.c | |
parent | ff7fc6bf8cebf3c66d79416d881dcd1086d5ae9b (diff) | |
download | ppe42-gcc-bdea04153f392e6750c731597d7c727b6632490f.tar.gz ppe42-gcc-bdea04153f392e6750c731597d7c727b6632490f.zip |
* decl2.c (build_artificial_parm): Set TREE_READONLY.
* decl.c (bad_specifiers): Allow throw specs on things with
pointer-to-function or -member-function type.
* init.c (build_default_init): Don't use a CONSTRUCTOR to initialize
a pmf.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39810 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/init.c')
-rw-r--r-- | gcc/cp/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/init.c b/gcc/cp/init.c index 6386f67f8c3..fb6beab8850 100644 --- a/gcc/cp/init.c +++ b/gcc/cp/init.c @@ -218,7 +218,7 @@ build_default_init (type) anything with a CONSTRUCTOR for arrays here, as that would imply copy-initialization. */ return NULL_TREE; - else if (AGGREGATE_TYPE_P (type)) + else if (AGGREGATE_TYPE_P (type) && !TYPE_PTRMEMFUNC_P (type)) { /* This is a default initialization of an aggregate, but not one of non-POD class type. We cleverly notice that the initialization |