From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9384 invoked by alias); 3 Jun 2011 10:49:44 -0000 Received: (qmail 9375 invoked by uid 22791); 3 Jun 2011 10:49:44 -0000 X-SWARE-Spam-Status: No, hits=-2.7 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; Fri, 03 Jun 2011 10:49:30 +0000 From: "yufeng at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/46003] cond5.C fails for ARM EABI tests. X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: yufeng at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: yufeng at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Status CC AssignedTo 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 Date: Fri, 03 Jun 2011 10:49:00 -0000 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: 2011-06/txt/msg00179.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46003 Yufeng Zhang changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |yufeng at gcc dot gnu.org AssignedTo|unassigned at gcc dot |yufeng at gcc dot gnu.org |gnu.org | --- Comment #5 from Yufeng Zhang 2011-06-03 10:48:29 UTC --- (In reply to comment #4) > Test g++.dg/template/cond5.C started failing for arm-none-linux-gnueabi with > this patch: > > r132158 | aoliva | 2008-02-06 20:31:43 +0000 (Wed, 06 Feb 2008) | 10 lines > > gcc/cp/ChangeLog: > PR c++/35056 > * tree.c: Include tree-flow.h. > (build_target_expr): Check type compatibility. The type checking introduced by this commit to build_target_expr is indeed where the ICE occurs, i.e. the assertion failure. The added type-checking exposes the problem. Jason Merrill has suggested updating build_conditional_expr to "have a template case that just determines the appropriate type and then builds up a COND_EXPR with that type from the unconverted operands, like we do for calls in finish_call_expr" (http://gcc.gnu.org/ml/gcc-patches/2011-03/msg00164.html) I've been distracted by other work, but will come back to this very soon.