[Bug c++/16604] Bad diagnostic
bangerth at dealii dot org
gcc-bugzilla@gcc.gnu.org
Mon Jul 19 13:36:00 GMT 2004
------- Additional Comments From bangerth at dealii dot org 2004-07-19 13:36 -------
The real bug is that you misspelled Hide::Breaker: it is only declared
with the lowercase name Hide::breaker.
This is the testcase:
-------------------
namespace NS {}
class X {
NS::NonExistent x;
};
-------------------
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c -w x.cc
x.cc:4: error: using-declaration for non-member at class scope
x.cc:4: error: expected `;' before "x"
This is already fixed in mainline, though:
g/x> /home/bangerth/bin/gcc-3.5-pre/bin/c++ -c x.cc
x.cc:4: error: `NonExistent' in namespace `NS' does not name a type
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16604
More information about the Gcc-bugs
mailing list