public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/9165: [3.3/3.4 regression] false "defined but not used" warnings
@ 2003-01-06 23:07 bangerth
  0 siblings, 0 replies; 4+ messages in thread
From: bangerth @ 2003-01-06 23:07 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, jbuck, nobody

Synopsis: [3.3/3.4 regression] false "defined but not used" warnings

State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Mon Jan  6 15:07:37 2003
State-Changed-Why:
    Already confirmed by Janis.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9165


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: c++/9165: [3.3/3.4 regression] false "defined but not used" warnings
@ 2003-01-07  2:44 mmitchel
  0 siblings, 0 replies; 4+ messages in thread
From: mmitchel @ 2003-01-07  2:44 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, jbuck, nobody

Synopsis: [3.3/3.4 regression] false "defined but not used" warnings

State-Changed-From-To: analyzed->closed
State-Changed-By: mmitchel
State-Changed-When: Mon Jan  6 18:44:46 2003
State-Changed-Why:
    Fixed in GCC 3.3.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9165


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: c++/9165: [3.3/3.4 regression] false "defined but not used" warnings
@ 2003-01-06 22:46 Janis Johnson
  0 siblings, 0 replies; 4+ messages in thread
From: Janis Johnson @ 2003-01-06 22:46 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c++/9165; it has been noted by GNATS.

From: Janis Johnson <janis187@us.ibm.com>
To: gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, jbuck@synopsys.com,
   gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org
Cc:  
Subject: Re: c++/9165: [3.3/3.4 regression] false "defined but not used" warnings
Date: Mon, 06 Jan 2003 14:43:44 -0800

 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
 
 
 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* c++/9165: [3.3/3.4 regression] false "defined but not used" warnings
@ 2003-01-04  0:16 jbuck
  0 siblings, 0 replies; 4+ messages in thread
From: jbuck @ 2003-01-04  0:16 UTC (permalink / raw)
  To: gcc-gnats


>Number:         9165
>Category:       c++
>Synopsis:       [3.3/3.4 regression] false "defined but not used" warnings
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 03 16:16:01 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Joe Buck
>Release:        3.3-pre, 3.4-experimental
>Organization:
>Environment:
GNU/Linux i686 (though probably all)
>Description:
gcc 3.3-pre and 3.4-experimental issue "defined but not used"
warnings for static class objects whose destructors do cleanup operations.  This is a more dangerous regression than it may appear, because it may inspire programmers to remove needed code from their applications, resulting in leaks and other failures.  This is especially likely in shops that ask for clean -Wall compiles.

This problem is not in gcc 3.2.1 or earlier versions.
>How-To-Repeat:
Compile with "gcc -c -O -Wall cleanup.cxx" where cleanup.cxx is
------------------------------
void do_cleanups();

class Cleanup {
public:
    ~Cleanup() { do_cleanups();}
};

static Cleanup dummy;
---------------------------------

and get

cleanup.cpp:8: warning: `Cleanup dummy' defined but not used
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-01-07  2:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-06 23:07 c++/9165: [3.3/3.4 regression] false "defined but not used" warnings bangerth
  -- strict thread matches above, loose matches on Subject: below --
2003-01-07  2:44 mmitchel
2003-01-06 22:46 Janis Johnson
2003-01-04  0:16 jbuck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).