Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!apple!portal!cup.portal.com!plav From: plav@cup.portal.com (Rick M Plavnicky) Newsgroups: comp.sys.amiga.programmer Subject: Re: SAS/C #elif bug Message-ID: <43353@cup.portal.com> Date: 15 Jun 91 17:45:52 GMT References: Organization: The Portal System (TM) Lines: 26 david@starsoft.hou.tx.us (Dave Lowrey) writes: >I was having some problems getting some code to properly compile. I have >isolated the problem to some code involving '#elif' preprocessor >statements. > >The following sample code illustrates the problem: [sample code omitted] >Now, I feel that the output should read: 1 2 1 > >However, SAS/C produces: 1 1 2 > >My UNIX system at work produces the correct answer (1 2 1). > >Is this a known SAS/C bug? > >I am running 5.10a For what it's worth, Manx 5.0d produces the expected output of (1 2 1). > Dave Lowrey | david@starsoft.hou.tx.us /* Rick Plavnicky ...!sun!cup.portal.com!plav -or- plav@cup.portal.com */