public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/17976] New: Calls the dtor twice
@ 2004-10-13 18:38 pinskia at gcc dot gnu dot org
  2004-10-13 18:41 ` [Bug c++/17976] [3.4/4.0 Regression] " pinskia at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-13 18:38 UTC (permalink / raw)
  To: gcc-bugs

extern "C" void abort();
struct A
{
  static int i;
  A(){}
  ~A(){i++;if(i>1)abort();}
};

int A::i = 0;

A a;
extern A a;

int main()
{
        return 0;
}

-- 
           Summary: Calls the dtor twice
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


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

end of thread, other threads:[~2004-10-15  4:25 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-13 18:38 [Bug c++/17976] New: Calls the dtor twice pinskia at gcc dot gnu dot org
2004-10-13 18:41 ` [Bug c++/17976] [3.4/4.0 Regression] " pinskia at gcc dot gnu dot org
2004-10-13 18:42 ` pinskia at gcc dot gnu dot org
2004-10-13 18:43 ` pinskia at gcc dot gnu dot org
2004-10-13 18:46 ` pinskia at gcc dot gnu dot org
2004-10-14 12:28 ` pinskia at gcc dot gnu dot org
2004-10-14 12:28 ` pinskia at gcc dot gnu dot org
2004-10-14 16:08 ` mmitchel at gcc dot gnu dot org
2004-10-15  4:19 ` cvs-commit at gcc dot gnu dot org
2004-10-15  4:24 ` cvs-commit at gcc dot gnu dot org
2004-10-15  4:25 ` mmitchel at gcc dot gnu dot org

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).