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 c++/12272] using declaration shadows namespace


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


bangerth at dealii dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Doesn't find namespace      |using declaration shadows
                   |                            |namespace


------- Additional Comments From bangerth at dealii dot org  2003-09-15 00:13 -------
Here's a cut-down testcase: 
---------------------------------------------- 
namespace NS1 { 
  namespace NS2 { 
  }; 
} 
namespace NS2 { 
  class X; 
} 
using namespace NS1; 
 
typedef NS2::X Y; 
-------------------------------- 
 
It fails like so with 3.3: 
tmp/g> ~/bin/gcc-3.3/bin/c++ -c x.cc 
x.cc:10: error: syntax error before `::' token 
 
I think it should pass. I'm at a machine where I don't have my compiler collection, so 
I can't say whether this is a regression or what. 
 
W.


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