public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/21174] New: name lookup differs between namespace-scope and global scope
@ 2005-04-23 10:17 boris at kolpackov dot net
  2005-04-23 15:34 ` [Bug c++/21174] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: boris at kolpackov dot net @ 2005-04-23 10:17 UTC (permalink / raw)
  To: gcc-bugs

$ cat >bug.cxx

namespace N1
{
  struct S {};
}

namespace N2
{
  struct S {};
}

namespace N3
{
  using namespace N1;
  using namespace N2;
  
  using N1::S;
  
  S
  f ();
}

using namespace N1;
using namespace N2;

using N1::S;

S
f ();

$ g++-3.4 --version
g++-3.4 (GCC) 3.4.4 20050314 (prerelease) (Debian 3.4.3-12)

$ g++-3.4 -c bug.cxx
bug.cxx:27: error: `S' does not name a type

-- 
           Summary: name lookup differs between namespace-scope and global
                    scope
           Product: gcc
           Version: 3.4.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: boris at kolpackov dot net
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: x86_64-pc-linux-gnu
  GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86_64-pc-linux-gnu


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


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

* [Bug c++/21174] name lookup differs between namespace-scope and global scope
  2005-04-23 10:17 [Bug c++/21174] New: name lookup differs between namespace-scope and global scope boris at kolpackov dot net
@ 2005-04-23 15:34 ` pinskia at gcc dot gnu dot org
  2005-04-23 15:36 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-23 15:34 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |3.3.3 4.1.0


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


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

* [Bug c++/21174] name lookup differs between namespace-scope and global scope
  2005-04-23 10:17 [Bug c++/21174] New: name lookup differs between namespace-scope and global scope boris at kolpackov dot net
  2005-04-23 15:34 ` [Bug c++/21174] " pinskia at gcc dot gnu dot org
@ 2005-04-23 15:36 ` pinskia at gcc dot gnu dot org
  2005-04-23 16:56 ` boris at kolpackov dot net
  2005-05-02 18:48 ` bangerth at dealii dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-23 15:36 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-04-23 15:36 -------
I think this is just how C++ works, Comeau's C++ front-end rejects the code in the same way

-- 


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


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

* [Bug c++/21174] name lookup differs between namespace-scope and global scope
  2005-04-23 10:17 [Bug c++/21174] New: name lookup differs between namespace-scope and global scope boris at kolpackov dot net
  2005-04-23 15:34 ` [Bug c++/21174] " pinskia at gcc dot gnu dot org
  2005-04-23 15:36 ` pinskia at gcc dot gnu dot org
@ 2005-04-23 16:56 ` boris at kolpackov dot net
  2005-05-02 18:48 ` bangerth at dealii dot org
  3 siblings, 0 replies; 5+ messages in thread
From: boris at kolpackov dot net @ 2005-04-23 16:56 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From boris at kolpackov dot net  2005-04-23 16:56 -------
EDG's frontend is not a definition of C++. Can you point to the verse in the
standard?


-- 


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


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

* [Bug c++/21174] name lookup differs between namespace-scope and global scope
  2005-04-23 10:17 [Bug c++/21174] New: name lookup differs between namespace-scope and global scope boris at kolpackov dot net
                   ` (2 preceding siblings ...)
  2005-04-23 16:56 ` boris at kolpackov dot net
@ 2005-05-02 18:48 ` bangerth at dealii dot org
  3 siblings, 0 replies; 5+ messages in thread
From: bangerth at dealii dot org @ 2005-05-02 18:48 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bangerth at dealii dot org  2005-05-02 18:48 -------
Just like PR 21205. 
W. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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


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

end of thread, other threads:[~2005-05-02 18:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-23 10:17 [Bug c++/21174] New: name lookup differs between namespace-scope and global scope boris at kolpackov dot net
2005-04-23 15:34 ` [Bug c++/21174] " pinskia at gcc dot gnu dot org
2005-04-23 15:36 ` pinskia at gcc dot gnu dot org
2005-04-23 16:56 ` boris at kolpackov dot net
2005-05-02 18:48 ` bangerth at dealii dot org

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).