This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
preprocessor/2724: trouble with ' and " between #if 0 and #endif
- To: gcc-gnats at gcc dot gnu dot org
- Subject: preprocessor/2724: trouble with ' and " between #if 0 and #endif
- From: reichelt at igpm dot rwth-aachen dot de
- Date: 3 May 2001 09:43:40 -0000
- Reply-To: reichelt at igpm dot rwth-aachen dot de
>Number: 2724
>Category: preprocessor
>Synopsis: trouble with ' and " between #if 0 and #endif
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Thu May 03 02:46:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Volker Reichelt
>Release: gcc 2.95.3, gcc 3.0 20010430 (prerelease)
>Organization:
>Environment:
IRIX 6.5, Linux
>Description:
IMHO code between "#if 0" and "#endif" should
be ignored completely. However, I get the following
error messages
Preproc.c:2:3: missing terminating ' character
Preproc.c:3:3: warning: multi-line string literals are deprecated
Preproc.c:3:3: warning: multi-line string literals are deprecated
Preproc.c:3:3: missing terminating " character
Preproc.c:1:1: unterminated #if
compiling
#if 0
' should be ignored
" should be ignored
#endif
>How-To-Repeat:
gcc -c file.c
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: