Bug 263 - Continuation lines for #defines don't like CR/LF line endings
Summary: Continuation lines for #defines don't like CR/LF line endings
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 2.95.1
: P3 normal
Target Milestone: 3.0.x
Assignee: Not yet assigned to anyone
URL:
Keywords: rejects-valid
Depends on:
Blocks: 8270
  Show dependency treegraph
 
Reported: 2000-05-30 00:16 UTC by john
Modified: 2006-01-01 20:59 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description john 2000-05-30 00:16:00 UTC
Where a file contains continuation lines for a #define statement (ie it has a trailing backslash on the line), compilation will fail if the line is terminated by an MS-DOS/WinNT style CR/LF line ending instead of the standard unix LF-only.

Release:
2.95.1

Environment:
Solaris

How-To-Repeat:
Try and compile any file from WinNT using GCC 2.95.1 with a trailing backslash on a #define!
Comment 1 Martin v. Loewis 2000-05-30 23:08:13 UTC
State-Changed-From-To: open->closed
State-Changed-Why: Fixed in the gcc 2.96 mainline
Comment 2 Martin v. Loewis 2000-05-31 06:08:13 UTC
From: loewis@gcc.gnu.org
To: gcc-gnats@gcc.gnu.org, john@indigointeractive.com.au, nobody@gcc.gnu.org
Cc:  
Subject: Re: c++/263
Date: 31 May 2000 06:08:13 -0000

 Synopsis: Continuation lines for #defines don't like CR/LF line endings
 
 State-Changed-From-To: open->closed
 State-Changed-By: loewis
 State-Changed-When: Tue May 30 23:08:13 2000
 State-Changed-Why:
     Fixed in the gcc 2.96 mainline
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=263&database=gcc