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

herter@pyramid.com herter@pyramid.com
Tue Feb 20 13:36:00 GMT 2001


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



More information about the Gcc-bugs mailing list