This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/16093] Bad error messages for missing declarations.
- From: "carlo at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Jun 2004 11:09:14 -0000
- Subject: [Bug c++/16093] Bad error messages for missing declarations.
- References: <20040620105648.16093.carlo@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From carlo at gcc dot gnu dot org 2004-06-20 11:09 -------
On second thought, make that:
test.cc:8: error: `n::foo' has not been declared
test.cc:9: error: `n::bar` has not been declared
This is the same format that one gets when doing
using n::foo;
Note that the full namespace should be used - and not
what is literally in the source. Consider:
namespace n1 {
namespace n2 {
}
}
namespace n3 {
namespace n2 {
class foo { };
}
}
using namespace n1;
n2::foo x;
Then one wants: error: `n1::n2::foo' has not been declared
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16093