From 73231e630b718feae072f75853f28aa97279fedc Mon Sep 17 00:00:00 2001 From: eck Date: Thu, 13 Dec 1990 09:14:54 +0000 Subject: [PATCH] added error message because of declaration problems --- lang/cem/cemcom.ansi/struct.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lang/cem/cemcom.ansi/struct.c b/lang/cem/cemcom.ansi/struct.c index b7e5c00dd..5d8c50d61 100644 --- a/lang/cem/cemcom.ansi/struct.c +++ b/lang/cem/cemcom.ansi/struct.c @@ -180,6 +180,7 @@ declare_struct(fund, idf, tpp) register struct tag *tg; + if (*tpp) error("multiple types in declaration"); if (!idf) idf = gen_idf(); tgp = (fund == ENUM ? &idf->id_enum : &idf->id_struct); -- 2.34.1