[Bug c++/17393] [3.4/4.0 Regression] "unused variable '._0'" warning with -Wall

bangerth at dealii dot org gcc-bugzilla@gcc.gnu.org
Fri Sep 10 18:00:00 GMT 2004


------- Additional Comments From bangerth at dealii dot org  2004-09-10 18:00 -------
Well, the error messages changed from 
 
pr17393.cc: In function `void foo()': 
pr17393.cc:5: error: parse error before `=' token 
 
to 
 
foo.cc:5: error: abstract declarator `A&' used as declaration 
foo.cc:5: error: `a' undeclared (first use this function) 
foo.cc:5: error: (Each undeclared identifier is reported only once for each 
function it appears in.) 
 
I don't know which is better or worse. The warning about the unused 
variable is just a follow-up that most people will very likely 
ignore when they see the first error. 
 
W. 

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17393



More information about the Gcc-bugs mailing list