how widespread is this cpp bug?

Juergen Wagner gandalf at csli.STANFORD.EDU
Thu Dec 1 15:04:54 AEST 1988


Sun4 (SunOS 4.0):		bug!
HP 9000/320 (HP-UX 6.0):	bug!
VAX 8700 (Ultrix):		bug!

So I tried one of our old TOPS-20 machines, which happily reported
    Error at main+4, line 6 of x.c:
      prin/*comment*/tf(
    Undefined symbol: "prin"

    Error at main+4, line 6 of x.c:
      prin/*comment*/tf(
    Expected token (semicolon) not found

    Error at main+6, line 8 of x.c:
      proc/**/VERSION
    Undefined symbol: "proc"

    Error at main+6, line 8 of x.c:
      proc/**/VERSION
    Expected token (semicolon) not found
    ?4 error(s) detected

People relying on this bug should change their habits. There are better ways
to concatenate tokens.

-- 
Juergen Wagner		   			gandalf at csli.stanford.edu
						 wagner at arisia.xerox.com



More information about the Comp.lang.c mailing list