digitalmars.D.bugs - [Patch] hide "extern enum" bug
- Thomas Kuehne (28/28) Dec 15 2004 -----BEGIN PGP SIGNED MESSAGE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 ERROR -> FAIL http://svn.kuehne.cn/dstress/compile/enum_05.d Thomas - --- dmd-0.109/src/dmd/enum.c 2004-04-16 12:18:18.000000000 +0200 +++ dmd-neu/src/dmd/enum.c 2004-12-15 13:32:29.850074432 +0100 -73,7 +73,11 sce = sc->push(this); sce->parent = this; number = 0; - - if (members->dim == 0) + if ( members == 0 ){ + error("enum %s is declared as external (not yet supported)", toChars()); + fatal; // hide members null pointer + } + if (members->dim == 0) error("enum %s must have at least one member", toChars()); for (i = 0; i < members->dim; i++) -----BEGIN PGP SIGNATURE----- iD8DBQFBwDDv3w+/yD4P9tIRAlQwAJ9X45pl9kQVpNGhZrBSQVZ9DeKX5gCdHkwV PutGsMfiRmiMu1h//Bq0pic= =/i9h -----END PGP SIGNATURE-----
Dec 15 2004