[gnu.gcc.bug] Are you supposed to be able to #define

schultz@mmm.UUCP (John C Schultz) (03/24/89)

I just got SC 6.1 from the net and much to my suprise gcc would not
compile it while SUN OS3.5 cc would.

A little tracking produced the problem in:
**********************************************************************
#define ctrl(a) ('a'&037)

used as:
        switch (ch)
        case  ctrl(r):
            break;
        case ctrl(z):
            break;
**********************************************************************
I would say that this is not supposed to compile yet SUN cc does OK while
GCC doesn't.  Do wiser minds have comments?



-- 
 john c. schultz   schultz@3M.Com   ..!uiucuxc!mmm!schultz  (612) 733-4047
           3M Center, Bldg 518-1-1, St. Paul, MN 55144-1000
  The opinions expressed herein are, as always, my own and not 3M's.