diff options
| -rw-r--r-- | gcc/cp/ChangeLog | 7 | ||||
| -rw-r--r-- | gcc/cp/decl.c | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 0ffb1bf..26810de 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,12 @@ 2004-01-30 Giovanni Bajo <giovannibajo@gcc.gnu.org> + DR206 + PR c++/13813 + * decl.c (grokdeclarator): Check immediatly type completeness for + non-dependent types. + +2004-01-30 Giovanni Bajo <giovannibajo@gcc.gnu.org> + PR c++/13683 * call.c (convert_arg_to_ellipsis): Don't emit a warning if within a sizeof expression.block diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 6fa3faa..26955cf 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -8177,7 +8177,7 @@ grokdeclarator (tree declarator, if (decl == NULL_TREE) return NULL_TREE; } - else if (!staticp && ! processing_template_decl + else if (!staticp && !dependent_type_p (type) && !COMPLETE_TYPE_P (complete_type (type)) && (TREE_CODE (type) != ARRAY_TYPE || initialized == 0)) { |
