c++/9165: [3.3/3.4 regression] false "defined but not used" warnings

Joe Buck jbuck@synopsys.com
Mon Jan 13 05:17:00 GMT 2003


On Mon, Jan 06, 2003 at 02:43:44PM -0800, Janis Johnson wrote:
> The regression showed up with this patch:
> 
> 2002-10-11  Mark Mitchell  <mark@codesourcery.com>
> 
>         * NEWS
>         * class.c
>         * cp-tree.h
>         * decl.c
>         * decl2.c
>         * init.c
>         * parse.y
>         * rtti.c
>         * typeck2.c
> 
> http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9165

Thanks, Janis.  Mark, could you have a look at this when you get a chance?
It seems that the error arises because, after inlining, nothing touches the
Cleanup object (since the body of the destructor calls a function that does
not take the Cleanup object as an argument).

Joe



More information about the Gcc-bugs mailing list