This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/16093] Bad error messages for missing declarations.


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]