This is the mail archive of the gcc-bugs@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]

c++/2042: Traditional C++ syntax error on id "export"



>Number:         2042
>Category:       c++
>Synopsis:       Traditional C++ syntax error on id "export"
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 20 13:36:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Thomas Herter
>Release:        2.95.2
>Organization:
>Environment:
Linux NN 2.2.16-SMP #1 SMP Wed Aug 2 20:01:21 GMT 2000 i686
>Description:
Code like this:

static int export(int rtype, void* rvalue, void* rname=NULL);

can not be translated even with -traditional-cpp
>How-To-Repeat:
g++ -c -traditional-cpp t1.C
>Fix:
#define may be used to alias "export" to another id.
>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]