[Bug c++/16093] Bad error messages for missing declarations.
carlo at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Jun 20 11:09:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list