From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24696 invoked by alias); 7 Apr 2009 16:05:17 -0000 Received: (qmail 22488 invoked by uid 48); 7 Apr 2009 16:04:55 -0000 Date: Tue, 07 Apr 2009 16:05:00 -0000 Message-ID: <20090407160455.22484.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug target/39678] std::transform is incorrect with std::multiples and bind2nd for complex In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "rguenth at gcc dot gnu dot org" 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: 2009-04/txt/msg00656.txt.bz2 ------- Comment #14 from rguenth at gcc dot gnu dot org 2009-04-07 16:04 ------- With a small testcase it works: struct Y {}; struct X { Y y; float real; float imag; }; struct X __attribute__((noinline)) foo (float *p) { struct X x; x.real = p[0]; x.imag = p[1]; return x; } extern "C" void abort (void); int main() { float a[2] = { 1., 2. }; struct X x = foo(a); if (x.real != 1. || x.imag != 2.) abort (); return 0; } -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Known to fail|4.1.3 4.2.5 4.3.3 4.4.0 |4.3.3 4.4.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39678