[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug with namespaces?
From: |
Silver |
Subject: |
Bug with namespaces? |
Date: |
Sat, 09 Feb 2002 22:42:48 +0100 |
Hi!
I just tried to compile this piece of code:
--------------------------------------------
#include <cstdio>
namespace g
{
int a=1;
}
namespace n1
{
namespace x
{
int a=2;
}
void doit()
{
namespace x=::g;
printf("%i\n",x::a);
}
}
int main()
{
n1::doit();
}
---------------------------------------------
It resulted in an error message from the assembler. I don't think, that
the assembler should give the user any error messages (exept inline
assembler and so on), because the compiler should always produce correct
assembler code.
Version info:
gcc --version : 3.03
gpp --version : 3.03
as --version : 2.11.2
I'm not quite sure what other info is needed, but if you want any
additional info, just ask.
Thanks for your time
Bernd Fuhrmann
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Bug with namespaces?,
Silver <=