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++/16604] Bad diagnostic


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


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