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++/24660] versioning weak symbols in libstdc++



------- Comment #7 from jason at gcc dot gnu dot org  2005-11-17 18:57 -------
Here's a reduced testcase:

namespace N { }
namespace std
{
  using namespace N __attribute__ ((strong));
}
namespace N
{
  using namespace std;
  template<typename T>
  struct A
  {
    void f();
  };
}
namespace std
{
  template<>
  struct A<int>
  {
    void f() { }
  };
}

This code, like the testcase for c++/16021, works fine if the implementation
namespace is nested within std.  I'm thinking of enforcing that requirement in
parse_using_directive; that would allow us to avoid adding more special lookup
rules.  Do you see any problem with that requirement?


-- 


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


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