Fix: opaque types my only be defined in the CORRESPONDING implementation

This commit is contained in:
ceriel 1995-04-26 13:54:56 +00:00
parent 5edfb9eccf
commit 15d2949b88

View file

@ -131,7 +131,8 @@ define(id, scope, kind)
/* An opaque type. We may now have found the /* An opaque type. We may now have found the
definition of this type. definition of this type.
*/ */
if (kind == D_TYPE && !DefinitionModule) { if (kind == D_TYPE && df->df_scope == CurrentScope &&
!DefinitionModule) {
df->df_kind = D_TYPE; df->df_kind = D_TYPE;
return df; return df;
} }