commit a9f59c62a1ef80c97cbf32e3aa11410f7ef9f455 parent acb25bfdff10aebe18b8edbc1c697fc1da9a64a3 Author: Roberto E. Vargas Caballero <k0ga@shike2.com> Date: Thu, 27 Aug 2015 15:57:24 +0200 Allow typedef of incomplete types Diffstat:
M | cc1/decl.c | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cc1/decl.c b/cc1/decl.c @@ -572,8 +572,8 @@ identifier(struct decl *dcl) } /* TODO: Add warning about ANSI limits */ - if (!tp->defined && sclass != EXTERN) - error("declared variable '%s' of incomplete type", name); + if (!tp->defined && sclass != EXTERN && sclass != TYPEDEF) + errorp("declared variable '%s' of incomplete type", name); if (tp->op == FTN) { if (sclass == NOSCLASS)