From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22276 invoked by alias); 8 Jul 2009 23:10:12 -0000 Received: (qmail 22115 invoked by uid 48); 8 Jul 2009 23:09:59 -0000 Date: Wed, 08 Jul 2009 23:10:00 -0000 Message-ID: <20090708230959.22114.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/40692] [4.5 Regression] Endless recursion between fold_ternary and fold_cond_expr_with_comparison In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "jakub 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-07/txt/msg00705.txt.bz2 ------- Comment #1 from jakub at gcc dot gnu dot org 2009-07-08 23:09 ------- Caused by r149060. Will debug tomorrow. Alternative testcase that doesn't warn about VLA at file scope: #define M1(x) (((x) & 0x00000002) ? 0x2 : ((x) & 0x1)) #define M2(x) (((x) & 0x0000000c) ? M1 ((x) >> 2) << 2 : M1 (x)) struct A { char f[1]; }; int foo (void) { return M2 (4096UL - (long)&((struct A *) 16UL)->f); } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40692