Bug 18818 - Continuation character fails in compile stage
Continuation character fails in compile stage
Product: Red Hat Linux
Classification: Retired
Component: gcc (Show other bugs)
i386 Linux
high Severity high
: ---
: ---
Assigned To: Jakub Jelinek
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2000-10-10 10:42 EDT by Need Real Name
Modified: 2005-10-31 17:00 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-10-10 10:42:59 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Need Real Name 2000-10-10 10:42:56 EDT
I try to compile the following, I get a parse erorr:

#include <stdio.h>
/* the continuation character causes an error. If the chaharacter is 
removed and the following two line are joined, there is no problem */
#define PRINT (x) \


Note I have created a similar file in vi so there is no CR/LF issues and 
the problem still occurs. I have a lot of source code that relies on the 
continuation character support. Please confirm this a soon as possible.
Comment 1 Jakub Jelinek 2000-10-10 10:54:04 EDT
Well, the code you provided above should give a parse error, because you have
space between PRINTF and (, which causes that PRINTF is not a function like
macro and the body of main expands to (x) printf(x);("\nHello\n");
If you indeed have no space between PRINTF and ( and the above is just a typo,
then make sure there are no spaces/tabs after the \ at the end of line.
Comment 2 Need Real Name 2000-10-10 11:36:59 EDT
It turns out I was a little premature in my bug report. The file I was working 
with was transferred to my pc form a NT box. When I ran vi the extra characters 
did not show up. It did however when I ran vi in binary mode.

Sorry for the inconveience.

Note You need to log in before you can comment on or make changes to this bug.