Issue 10770 - is(T BASE==enum) with tag enum T - AssertFail:'type' line 428 declaration.c

https://d.puremagic.com/issues/show_bug.cgi?id=10770

Superseded fix of #2456.