Re: namespace and class within with similar name

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Alexander,

> Shouldn't it be clear that I wan't to access class L in
> namespace S and not some L of class S in namespace S ?

It appears that when you injected the identifiers from namespace S into the
global namespace, the ::S::L is ambiguous between namespace S and class S
which both are (now) in the global namespace.

The compiler is going down the class S path.

I think that's a bug.

Not that I can cite chapter/verse of ISO 14882, rather I just tested against
the EDG front end, and EDG accepted the code.  (I have strong confidence
that the EDG front end is fully compliant with ISO 14882.)

> Any idea besides complaining about why I want to do this at all ? ;)

I think you should file a bug.  Maybe it will get fixed in GCC 4.4, and if
not, probably by 4.5.

http://gcc.gnu.org/bugs.html

Sincerely,
--Eljay


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux