This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
assembly name collisions in C++
- To: Ken Raeburn <raeburn at raeburn dot org>
- Subject: assembly name collisions in C++
- From: Alex Samuel <samuel at codesourcery dot com>
- Date: Wed, 26 Jul 2000 11:04:55 -0700 (PDT)
- Cc: gcc-bugs at gcc dot gnu dot org
- Organization: CodeSourcery, LLC
- References: <200007261750.NAA08513@raeburn.org>
Ken Raeburn <raeburn@raeburn.org> writes:
Ken> I don't know the C++ standard well enough to say with
Ken> authority whether namespaces and classes are supposed to have
Ken> distinct, uh, name spaces
I believe that your code sample is illegal -- you can't declare both a
class and a namespace foo in the same scope. The problem isn't in the
mangling; however, it is a bug that gcc doesn't catch the double
declaration of foo.
Regards
Alex Samuel
CodeSourcery LLC