From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8204 invoked by alias); 11 Sep 2003 16:23:48 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 8197 invoked from network); 11 Sep 2003 16:23:46 -0000 Received: from unknown (HELO garibaldi.home) (82.32.50.9) by sources.redhat.com with SMTP; 11 Sep 2003 16:23:46 -0000 Received: from codesourcery.com (localhost.localdomain [127.0.0.1]) by garibaldi.home (8.12.8/8.12.8) with ESMTP id h8BGLVmw006983; Thu, 11 Sep 2003 17:21:37 +0100 Message-ID: <3F60A10A.2010802@codesourcery.com> Date: Thu, 11 Sep 2003 16:23:00 -0000 From: Nathan Sidwell Organization: Codesourcery LLC User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Eljay Love-Jensen CC: "gcc-help@gcc.gnu.org" Subject: Re: Does GCC 3.4 fix this bug? References: <5.2.1.1.0.20030911110503.00bb5d20@iplan-mn.corp.adobe.com> In-Reply-To: <5.2.1.1.0.20030911110503.00bb5d20@iplan-mn.corp.adobe.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-09/txt/msg00120.txt.bz2 Eljay Love-Jensen wrote: > Hi everyone, > > Does anyone know if this annoying bug in GCC is going to be fixed in 3.4? > int main() > { > Bar quux(Foo()); // -- Bug in GCC 3.2 & 3.3 quux is a function taking a (pointer to function taking no args, returning a Foo) argument and returning a Bar > //Bar quux((0,Foo())); // -- workaround in GCC 3.2 & 3.3 or Bar quux = Bar (Foo ()) nathan -- Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC The voices in my head said this was stupid too nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk