From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29208 invoked by alias); 30 Jun 2010 10:32:47 -0000 Received: (qmail 28963 invoked by uid 48); 30 Jun 2010 10:32:20 -0000 Date: Wed, 30 Jun 2010 10:32:00 -0000 Message-ID: <20100630103220.28962.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/44681] usage of macro in loop boundary leads to crash In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "jd at cococo dot de" 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: 2010-06/txt/msg02915.txt.bz2 ------- Comment #3 from jd at cococo dot de 2010-06-30 10:32 ------- You are right - it was a matter of bracketing. After having changed the macro to #define max(a,b) (a>b?a:b) it works fine on MingW and Linux. The problem lies in an incompatibility between to Delphi 2010. Delphi processed it according to my intention and gcc interprets it differently. Thanks, Jens -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44681