This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/9165: [3.3/3.4 regression] false "defined but not used" warnings
- From: Joe Buck <jbuck at synopsys dot com>
- To: Janis Johnson <janis187 at us dot ibm dot com>
- Cc: mark at codesourcery dot com, gcc-bugs at gcc dot gnu dot org
- Date: Mon, 6 Jan 2003 15:01:36 -0800
- Subject: Re: c++/9165: [3.3/3.4 regression] false "defined but not used" warnings
- References: <3E1A06A0.3349B226@us.ibm.com>
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