This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

c++/9891: #error does not expand macros


>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]