Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!lll-lcc!pyramid!voder!kontron!brad From: brad@kontron.UUCP Newsgroups: comp.sys.ibm.pc Subject: A(nother?) Turbo C bug: #if / enum Message-ID: <1782@kontron.UUCP> Date: Fri, 14-Aug-87 01:00:10 EDT Article-I.D.: kontron.1782 Posted: Fri Aug 14 01:00:10 1987 Date-Received: Sat, 15-Aug-87 16:39:42 EDT Organization: Kontron Electronics, Mt. View, CA Lines: 39 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