From de12536c9449b0848d876bc5308784ade43bd727 Mon Sep 17 00:00:00 2001 From: ceriel Date: Thu, 18 Apr 1991 12:27:58 +0000 Subject: [PATCH] fixed bug with struct/union/enum declarations --- lang/cem/cemcom.ansi/declar.g | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lang/cem/cemcom.ansi/declar.g b/lang/cem/cemcom.ansi/declar.g index ae79dc523..0536d3692 100644 --- a/lang/cem/cemcom.ansi/declar.g +++ b/lang/cem/cemcom.ansi/declar.g @@ -366,6 +366,7 @@ enum_specifier(register struct type **tpp;) arith l = (arith)0; } : + {if (*tpp) error("multiple types in declaration");} ENUM [ {declare_struct(ENUM, (struct idf *) 0, tpp);} @@ -432,6 +433,7 @@ struct_or_union_specifier(register struct type **tpp;) register struct idf *idf; } : + {if (*tpp) error("multiple types in declaration");} [ STRUCT | UNION ] {fund = DOT;} [ -- 2.34.1