public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/27768]  New: [4.2 regression] wrong-code with vectors
@ 2006-05-25  8:29 reichelt at gcc dot gnu dot org
  2006-05-25  8:30 ` [Bug tree-optimization/27768] " reichelt at gcc dot gnu dot org
                   ` (17 more replies)
  0 siblings, 18 replies; 19+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-05-25  8:29 UTC (permalink / raw)
  To: gcc-bugs

The following code crashes when I compile it with -O2 (mainline)

==========================
#include<vector>

struct A
{
    std::vector<int> v;
    char             c;
};

struct B {};

int main()
{
    A a;
    A a2(a);
    std::vector<B*> b;
    return 0;
}
==========================

The program dies with:

*** glibc detected *** free(): invalid pointer: 0x00002aaaaabc0c60 ***
zsh: 13987 abort      a.out

I'll come up with a reduced testcase next week if nobody beats me.

Happens only with mainline, -O1 is not affected.


-- 
           Summary: [4.2 regression] wrong-code with vectors
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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


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

end of thread, other threads:[~2006-06-30 15:26 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-25  8:29 [Bug tree-optimization/27768] New: [4.2 regression] wrong-code with vectors reichelt at gcc dot gnu dot org
2006-05-25  8:30 ` [Bug tree-optimization/27768] " reichelt at gcc dot gnu dot org
2006-05-25 16:37 ` pinskia at gcc dot gnu dot org
2006-05-28 20:48 ` pinskia at gcc dot gnu dot org
2006-05-28 20:50 ` pinskia at gcc dot gnu dot org
2006-05-28 20:52 ` [Bug c++/27768] " pinskia at gcc dot gnu dot org
2006-05-30 16:02 ` reichelt at gcc dot gnu dot org
2006-05-30 16:05 ` [Bug tree-optimization/27768] " reichelt at gcc dot gnu dot org
2006-05-30 16:07 ` [Bug c++/27768] " pinskia at gcc dot gnu dot org
2006-05-31 11:07 ` reichelt at gcc dot gnu dot org
2006-05-31 11:13 ` [Bug c++/27768] [4.1/4.2 " reichelt at gcc dot gnu dot org
2006-06-04 19:30 ` mmitchel at gcc dot gnu dot org
2006-06-15  3:47 ` bangerth at dealii dot org
2006-06-26 22:26 ` jason at gcc dot gnu dot org
2006-06-28 19:57 ` jason at gcc dot gnu dot org
2006-06-29  1:27 ` jason at gcc dot gnu dot org
2006-06-29 14:11 ` [Bug c++/27768] [4.1 " pinskia at gcc dot gnu dot org
2006-06-30 15:26 ` jason at gcc dot gnu dot org
2006-06-30 15:26 ` pinskia 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).