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++/3933: compiler borks on expression with "export" in it



>Number:         3933
>Category:       c++
>Synopsis:       compiler borks on expression with "export" in it
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Aug 03 16:26:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     francis wai
>Release:        gcc 2.95.2
>Organization:
>Environment:
sparc-sun-solaris2.6
>Description:
gcc appears to swallow 'export' regardless of
whether it is part of an expression or declaration.

compiler output:

3: warning: keyword 'export' not implemented and will be ignored
3: parse error before =

>How-To-Repeat:
/*
Say a C struct with a field named export.
Or, ...
*/
extern "C" { struct X { int export; }; };

void f() { X x; x.export = 1; }
>Fix:

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