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++/30586] New: [4.2/4.3 regression] Namespace pollution in c++ headers


$ cat abi.cc
#include <iostream>
struct abi;
void foo (abi &);
$ gcc abi.cc
abi.cc:3: error: variable or field &#8216;foo&#8217; declared void
abi.cc:3: error: expected primary-expression before &#8216;&&#8217; token
abi.cc:3: error: expected primary-expression before &#8216;)&#8217; token

The problem is that <bits/atomic_word.h> on ia64 includes <cxxabi.h> which
defines namespace abi.

Before 4.2, ia64 has used the generic <bits/atomic_word.h>.


-- 
           Summary: [4.2/4.3 regression] Namespace pollution in c++ headers
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: schwab at suse dot de
GCC target triplet: ia64-*-*


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


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