public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/18604] New: [3.4/4.0 Regression] Strong using lookup conflicts
@ 2004-11-22  5:02 giovannibajo at libero dot it
  2004-11-22  5:10 ` [Bug c++/18604] " pinskia at gcc dot gnu dot org
                   ` (18 more replies)
  0 siblings, 19 replies; 20+ messages in thread
From: giovannibajo at libero dot it @ 2004-11-22  5:02 UTC (permalink / raw)
  To: gcc-bugs

The following code fails to compile on 3.4 and newer compilers:

-------------------------------------------------
#include <functional>

struct less : public std::less<int>
{};

#include <set>
-------------------------------------------------

$ g++-3.4 -c test.cc
In file included from /usr/lib/gcc/i686-pc-cygwin/3.4.0/include/c++/set:67,
                 from test.cc:6:
/usr/lib/gcc/i686-pc-cygwin/3.4.0/include/c++/bits/stl_set.h:69: error: `less' h
as not been declared



The problem appears related to strong using. This is a reduced, epurated 
testcase:

-------------------------------------------------
namespace NB {}

namespace NA  {
    using namespace NB;
}

namespace NB {
    using namespace NA __attribute__ ((strong));

    struct Foo {};
}

struct Foo : NB::Foo
{};

namespace NA {
   Foo a;
}
-------------------------------------------------
test.ii:17: error: `Foo' does not name a type


(note: I found this bug while cleaning up the testcase in PR 15855).

Jason: can you have a look at this please?

-- 
           Summary: [3.4/4.0 Regression] Strong using lookup conflicts
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: giovannibajo at libero dot it
                CC: gcc-bugs at gcc dot gnu dot org,jason at redhat dot com


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


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2005-05-10  9:43 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-22  5:02 [Bug c++/18604] New: [3.4/4.0 Regression] Strong using lookup conflicts giovannibajo at libero dot it
2004-11-22  5:10 ` [Bug c++/18604] " pinskia at gcc dot gnu dot org
2004-12-30 11:59 ` giovannibajo at libero dot it
2005-01-19  6:17 ` mmitchel at gcc dot gnu dot org
2005-02-07 21:18 ` giovannibajo at libero dot it
2005-02-11 21:53 ` mmitchel at gcc dot gnu dot org
2005-05-08 22:13 ` [Bug c++/18604] [3.4/4.0/4.1 " giovannibajo at libero dot it
2005-05-09  7:25 ` giovannibajo at libero dot it
2005-05-09  9:05 ` pcarlini at suse dot de
2005-05-09  9:17 ` pcarlini at suse dot de
2005-05-09 12:20 ` giovannibajo at libero dot it
2005-05-09 12:30 ` [Bug libstdc++/18604] [3.4/4.0/4.1 Regression] Use of unqualified names conflict with names in global namespace pcarlini at suse dot de
2005-05-10  1:36 ` mmitchel at gcc dot gnu dot org
2005-05-10  1:41 ` pcarlini at suse dot de
2005-05-10  1:43 ` pcarlini at suse dot de
2005-05-10  1:52 ` mmitchel at gcc dot gnu dot org
2005-05-10  1:58 ` pcarlini at suse dot de
2005-05-10  1:58 ` cvs-commit at gcc dot gnu dot org
2005-05-10  2:16 ` cvs-commit at gcc dot gnu dot org
2005-05-10  9:43 ` giovannibajo at libero dot it

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).