c++/9891: #error does not expand macros
stephen@rabbit.eng.miami.edu
stephen@rabbit.eng.miami.edu
Fri Feb 28 21:26:00 GMT 2003
>Number: 9891
>Category: c++
>Synopsis: #error does not expand macros
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Feb 28 21:26:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: GCC
>Release: gcc version 2.95.4 20020320 [FreeBSD]
>Organization:
>Environment:
freeBSD 4.7-RELEASE
>Description:
#error does not expand macros. This program
> #include <stdio.h>
>
> #define ABCD the cat sat on the mat
>
> #error ABCD
>
> void main(void)
> { }
produces
> x.cpp:5: #error ABCD
instead of
> x.cpp:5: #error the cat sat on the mat
>How-To-Repeat:
CC compile that program. No special options,
gcc with standard install
>Fix:
no idea.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list