Bug 60374 - Bogus warning on comments ending in '\ '
Bogus warning on comments ending in '\ '
Product: Red Hat Raw Hide
Classification: Retired
Component: gcc (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Depends On:
  Show dependency treegraph
Reported: 2002-02-26 17:57 EST by Enrico Scholz
Modified: 2008-05-01 11:38 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-02-26 17:57:21 EST
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 Enrico Scholz 2002-02-26 17:57:17 EST
Description of Problem:

| $ cat >foo.cc <<EOF
| // line 1 \ 
| // line 2
| $ g++ -c -Wall foo.cc  ## with plain 'cpp' also
| foo.cc:1:1: warning: multi-line comment

(I do not know if bugzilla/HTML preserves the final whitespace in line 1, but it
ends with '\ ').

The C++ standard speaks only about "a new-line character and an immediately
preceding backslash" in chapter 2.1, and not about a NL character and a
backslash plus whitespaces. Therefore, I think the preprocessor and not the
program is wrong.

Version-Release number of selected component (if applicable):

Comment 1 Jakub Jelinek 2002-02-26 18:02:17 EST
See http://gcc.gnu.org/ml/gcc/2002-02/msg01184.html

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