[runtime] Catch attempts to create enum types with an underlying type that is itself...
authormonojenkins <jo.shields+jenkins@xamarin.com>
Tue, 25 Aug 2020 18:17:25 +0000 (14:17 -0400)
committerGitHub <noreply@github.com>
Tue, 25 Aug 2020 18:17:25 +0000 (11:17 -0700)
commitbad8645dce89991ffa011c59a147d5ab4c5c63fe
treeccfadfe326c8bed253339cf712975fbdcba2e6a9
parentff4f37fa33160095468275df25ae434d1df46847
[runtime] Catch attempts to create enum types with an underlying type that is itself an incomplete enum type. (#41165)

* Catch attempts to create enum types with an underlying type that is itself an incomplete enum type.

Previously, only non-enum types containing fields with incomplete enum
types were forbidden.

* Permit static constant fields with incomplete types if the incomplete type is the type currently being defined

Co-authored-by: Alexis Christoforides <alexis@thenull.net>
Co-authored-by: imhameed <imhameed@users.noreply.github.com>
src/mono/mono/metadata/sre.c