From: eck Date: Thu, 13 Dec 1990 09:14:54 +0000 (+0000) Subject: added error message because of declaration problems X-Git-Tag: release-5-5~1347 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=73231e630b718feae072f75853f28aa97279fedc;p=ack.git added error message because of declaration problems --- 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);