From b642ab7c7b3b489776141abe5e5a3dc44e377ab4 Mon Sep 17 00:00:00 2001 From: evans1629 Date: Sun, 17 Mar 2002 04:44:16 +0000 Subject: [PATCH] Fixed internal error for stray type names in structure field declarations. --- src/clabstract.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/clabstract.c b/src/clabstract.c index 0a4edb4..bf9e58f 100644 --- a/src/clabstract.c +++ b/src/clabstract.c @@ -1088,12 +1088,6 @@ fixUnnamedDecl (qtype q) if (ctype_isStruct (ct) || ctype_isUnion (ct)) { - /* evans 2002-03-16: this seems like a really bad idea! - uentryList res = ctype_getFields (ct); - - return (uentryList_copy (res)); - */ - return uentryList_single (uentry_makeUnnamedVariable (ct)); } else if (ctype_isEnum (ct)) @@ -1102,8 +1096,11 @@ fixUnnamedDecl (qtype q) return uentryList_undefined; } else - { - BADBRANCHCONT; + { + voptgenerror + (FLG_SYNTAX, + message ("Type name in field declarations: %s", qtype_unparse (q)), + g_currentloc); } return uentryList_undefined; -- 2.45.2