bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 1.75 test suite failure with HP-UX C compiler and #endif


From: Paul Eggert
Subject: Re: 1.75 test suite failure with HP-UX C compiler and #endif
Date: Wed, 13 Nov 2002 15:47:17 -0800

> From: Albert Chin-A-Young <address@hidden>
> Date: Wed, 13 Nov 2002 14:48:42 -0600
> 
> (HP-UX 10.20, 11.00, 11i)...
> 4. input.at:93: testing Torturing the Scanner...
> input.at:206: bison -d -v -o input.c input.y
> input.at:207: $CC $CFLAGS $CPPFLAGS input.c main.c -o input
> stderr:
> cpp: "input.y", line 96: error 4033: Missing #endif at end of file.

Perhaps this is due to a bug in the HP-UX C compiler?
What does it do with the following text?

#ifdef __STDC__
/\
* A comment with backslash-newlines in it. %{ %} *\
\
/
char str[] = "\\
" A string with backslash-newlines in it %{ %} \\
"";
char apostrophe = '\\
\
'\
';
#endif

Assuming the HP-UX compiler mishandles the above example, is there a
simple way to avoid the compiler bug?  For example, perhaps we could
remove the lines that contain solitary backslashes?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]