This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17393] [3.4/4.0 Regression] "unused variable '._0'" warning with -Wall
- From: "gdr at integrable-solutions dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Sep 2004 16:27:55 -0000
- Subject: [Bug c++/17393] [3.4/4.0 Regression] "unused variable '._0'" warning with -Wall
- References: <20040910122209.17393.timoe@cs.tut.fi>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From gdr at integrable-solutions dot net 2004-09-10 16:27 -------
Subject: Re: [3.4/4.0 Regression] "unused variable '._0'" warning with -Wall
"bangerth at dealii dot org" <gcc-bugzilla@gcc.gnu.org> writes:
| That's related to the new parser. The problem with the warning is
| that gcc tries to make some sense out of your wrong code and
| introduces an unnamed variable for something it tried on the broken
| declaration, and this unnamed variable is later found to be unused.
Your analyzis is absolutly right. However, that is a regression in
the quality of diagnostic we used to give.
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17393