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]
Other format: [Raw text]

[Bug c++/26068] New: extern "C" static function should not be allowed


Acccording to C++ standard 7.5/7 "A linkage-specification directly containing a
single declaration shall not specify a storage class."  They also give the
following example as invalid:

extern "C" static void foo();

But g++ version 4.0.2 accepts this.


-- 
           Summary: extern "C" static function should not be allowed
           Product: gcc
           Version: 4.0.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pr2345 at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26068


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