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 libstdc++/53678] New: [4.6/4.7/4.8 Regression] namespace pollution on NetBSD


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

             Bug #: 53678
           Summary: [4.6/4.7/4.8 Regression] namespace pollution on NetBSD
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: redi@gcc.gnu.org
              Host: *-*-netbsd5.1
            Target: *-*-netbsd5.1
             Build: *-*-netbsd5.1


Created attachment 27623
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27623
patch for ctype_base.h

The fix for PR 47045 pollutes the global namespace:

#include <locale>

int main()
{
  int NetBSD = 1;
}

r.cc: In function 'int main()':
r.cc:5:7: error: expected unqualified-id before numeric constant

I received the attached patch from JÃrg Sonnenberger, a NetBSD toolchain
developer, and intend to commit it. This PR is to record the regression.


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