public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/32245]  New: wrong POD type initialization
@ 2007-06-07 13:37 s__nakayama at infoseek dot jp
  2007-06-08 10:37 ` [Bug c++/32245] [4.1/4.2/4.3 Regression] wrong POD type initialization with pointer to member rguenth at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: s__nakayama at infoseek dot jp @ 2007-06-07 13:37 UTC (permalink / raw)
  To: gcc-bugs

testcase:
#include <cassert>

struct foo
{
  int mem1;
  int foo::* mem2;
};

int main()
{
  foo x = {0};
  assert(x.mem2 == foo().mem2);
  return 0;
}

result:
$ g++42 bug.cpp -o bug; ./bug
assertion "x.mem2 == foo().mem2" failed: file "bug.cpp", line 12
Aborted (core dumped)


-- 
           Summary: wrong POD type initialization
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: s__nakayama at infoseek dot jp


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


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

end of thread, other threads:[~2008-07-04 16:08 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-07 13:37 [Bug c++/32245] New: wrong POD type initialization s__nakayama at infoseek dot jp
2007-06-08 10:37 ` [Bug c++/32245] [4.1/4.2/4.3 Regression] wrong POD type initialization with pointer to member rguenth at gcc dot gnu dot org
2007-06-30  9:15 ` pinskia at gcc dot gnu dot org
2007-07-04  3:24 ` mmitchel at gcc dot gnu dot org
2007-07-04 19:02 ` mmitchel at gcc dot gnu dot org
2007-07-06  1:24 ` mmitchel at gcc dot gnu dot org
2007-07-06  1:37 ` [Bug c++/32245] [4.1/4.2 " mmitchel at gcc dot gnu dot org
2007-07-07  2:03 ` mmitchel at gcc dot gnu dot org
2007-07-07  2:05 ` [Bug c++/32245] [4.1 " mmitchel at gcc dot gnu dot org
2007-11-30 10:43 ` aaw at gcc dot gnu dot org
2007-11-30 10:49 ` rguenth at gcc dot gnu dot org
2008-07-04 16:08 ` jsm28 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).