From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6209 invoked by alias); 23 Jan 2012 14:55:54 -0000 Received: (qmail 6197 invoked by uid 22791); 23 Jan 2012 14:55:52 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 23 Jan 2012 14:55:40 +0000 From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/51934] FAIL: g++.dg/torture/pr51344.C -O0 (test for excess errors) due to "cdecl attribute ignored" warning Date: Mon, 23 Jan 2012 15:06:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dominiq at lps dot ens.fr X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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: 2012-01/txt/msg02648.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51934 --- Comment #13 from Dominique d'Humieres 2012-01-23 14:55:08 UTC --- > Log: > PR target/51934 > * g++.dg/torture/pr51344.C: Use noreturn instead of cdecl. > > Should be fixed now. The use of 'noreturn' yields a warning with g++ 4.6.2 and not an infinite loop: [macbook] f90/bug% time g++-fsf-4.6 -c pr51344_db.C pr51344_db.C: In function 'A& operator>>(A&, B&)': pr51344_db.C:9:12: warning: function declared 'noreturn' has a 'return' statement [enabled by default] 0.012u 0.024s 0:00.93 3.2% 0+0k 3+13io 0pf+0w so IMO the test is no longer testing what has been fixed (see comment #8 for a list of what I have tried).