From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30835 invoked by alias); 7 Jun 2007 13:37:48 -0000 Received: (qmail 30756 invoked by uid 48); 7 Jun 2007 13:37:35 -0000 Date: Thu, 07 Jun 2007 13:37:00 -0000 Subject: [Bug c++/32245] New: wrong POD type initialization X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "s__nakayama at infoseek dot jp" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-06/txt/msg00490.txt.bz2 testcase: #include 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