RE: namespace lookup

2007-05-24 Thread Ching, Jimen \(US SSA\)
> > namespace X > > { > > namespace Y > > { > > namespace Z > > { > > struct A { typedef int int_t; }; > > struct Z { typedef int int_t; }; } } } > > > > using namespace X::Y::Z; > > > > int > > main() > > { > > Z::A::int_t i = 0; > > Z::Z::int_t j = 0; > > r

Re: namespace lookup

2007-05-24 Thread Andrew Pinski
On 5/24/07, Ching, Jimen (US SSA) <[EMAIL PROTECTED]> wrote: Hi, I have the following code: namespace X { namespace Y { namespace Z { struct A { typedef int int_t; }; struct Z { typedef int int_t; }; } } } using namespace X::Y::Z; int main() { Z::A::int_t i = 0;

namespace lookup

2007-05-24 Thread Ching, Jimen \(US SSA\)
Hi, I have the following code: namespace X { namespace Y { namespace Z { struct A { typedef int int_t; }; struct Z { typedef int int_t; }; } } } using namespace X::Y::Z; int main() { Z::A::int_t i = 0; Z::Z::int_t j = 0; return i == j; } I used the comma

Re: Namespace lookup: g++ 4.0.0 -> g++ 4.0.1 regression?

2005-07-09 Thread Gabriel Dos Reis
Jhair Tocancipa Triana <[EMAIL PROTECTED]> writes: | Consider the following snippet: | | --8<---cut here---start->8--- | namespace foo | { | class A | { | friend class B; | | void bar (B); | }; | | class B {}; | } | --8<---cut here

Namespace lookup: g++ 4.0.0 -> g++ 4.0.1 regression?

2005-07-09 Thread Jhair Tocancipa Triana
Consider the following snippet: --8<---cut here---start->8--- namespace foo { class A { friend class B; void bar (B); }; class B {}; } --8<---cut here---end--->8--- This compiles fine with: g++ (GCC) 3.3.3