brad@kontron.UUCP (08/14/87)
The following abstracted code fragment erroneously produces a "Duplicate case" compile error in my copy of Turbo C (purchased locally within the last week): typedef enum { beef, #if 0 mystery, #endif lamb } MeatType; frob(specimen) MeatType specimen; { switch(specimen) { case beef: return(1); case lamb: return(2); default: return(0); }; } If the #if / #endif are replaced by /* ... */, the problem disappears. Does anybody recognize this as an old bug with an available fix? On the positive side, Turbo C has successfully compiled a medium-sized (110KB) application program, with surprisingly good object code size and execution speeds. The above bug stands in the way of seeing how it does with a monster (420K + overlays) application. Brad Yearwood Kontron Electronics {voder, pyramid}!kontron!brad Mountain View, CA (415) 965-7020 (800) 227-8834