aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-decl.c
diff options
context:
space:
mode:
authorGeoffrey Keating <geoffk@redhat.com>2000-11-09 21:29:54 +0000
committerGeoffrey Keating <geoffk@gcc.gnu.org>2000-11-09 21:29:54 +0000
commitb52114d28357b7616e6c5d25cffd25a0799b2682 (patch)
tree5734ba1385530ab85ea04172edc5015621026740 /gcc/c-decl.c
parenta949941cf79dc2bee4e741ce3928e11c4053f257 (diff)
downloadgcc-b52114d28357b7616e6c5d25cffd25a0799b2682.zip
gcc-b52114d28357b7616e6c5d25cffd25a0799b2682.tar.gz
gcc-b52114d28357b7616e6c5d25cffd25a0799b2682.tar.bz2
In gcc/: 2000-11-09 Geoffrey Keating <geoffk@redhat.com>
In gcc/: 2000-11-09 Geoffrey Keating <geoffk@redhat.com> * c-decl.c (finish_struct): When a structure is completed, check all its variant types for completeness. In gcc/testsuite/: 2000-11-09 Geoffrey Keating <geoffk@redhat.com> * gcc.c-torture/compile/20001109-1.c: New test. * gcc.c-torture/compile/20001109-2.c: New test. From-SVN: r37346
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r--gcc/c-decl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index 2bbfd46..c1093ce 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -5573,7 +5573,7 @@ finish_struct (t, fieldlist, attributes)
tree decl;
for (decl = current_binding_level->names; decl; decl = TREE_CHAIN (decl))
{
- if (TREE_TYPE (decl) == t
+ if (TYPE_MAIN_VARIANT (TREE_TYPE (decl)) == TYPE_MAIN_VARIANT (t)
&& TREE_CODE (decl) != TYPE_DECL)
{
layout_decl (decl, 0);