aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorGiovanni Bajo <giovannibajo@gcc.gnu.org>2004-01-30 16:35:03 +0000
committerGiovanni Bajo <giovannibajo@gcc.gnu.org>2004-01-30 16:35:03 +0000
commita9f46cbbe49d6342817147618546e51af7515528 (patch)
tree7f7487d020542a6de5c0e17de96e7507e7aa2bdf /gcc
parent39a44a4e393e7fd5ea60fa9b19eedbeacefe9862 (diff)
downloadgcc-a9f46cbbe49d6342817147618546e51af7515528.zip
gcc-a9f46cbbe49d6342817147618546e51af7515528.tar.gz
gcc-a9f46cbbe49d6342817147618546e51af7515528.tar.bz2
re PR c++/13813 ([DR206] Incomplete member variables in a template.)
DR206 PR c++/13813 * decl.c (grokdeclarator): Check immediatly type completeness for non-dependent types. From-SVN: r76970
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog7
-rw-r--r--gcc/cp/decl.c2
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))
{