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
This commit is contained in:
parent
39a44a4e39
commit
a9f46cbbe4
@ -1,3 +1,10 @@
|
||||
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
|
||||
|
@ -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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user