From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25412 invoked by alias); 1 Jan 2003 21:55:04 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 25393 invoked by uid 61); 1 Jan 2003 21:55:03 -0000 Date: Wed, 01 Jan 2003 21:55:00 -0000 Message-ID: <20030101215503.25392.qmail@sources.redhat.com> To: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, kengole@us.ibm.com, nobody@gcc.gnu.org From: paolo@gcc.gnu.org Reply-To: paolo@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, kengole@us.ibm.com, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: c++/2478: class QRect { public: QRect(int, int, int, int) {} X-SW-Source: 2003-01/txt/msg00079.txt.bz2 List-Id: }; void ex() { double x_[10], y_[10]; int w, h, ns_, i; // Does not work: QRect bb2(int(x_[i]*w), int(y_[i]*h), ns_, ns_); // Does work: //QRect bb2(int(w*x_[i]), int(y_[i]*h), ns_, ns_); // Does work: //QRect bb2((int)(x_[i]*w), int(y_[i]*h), ns_, ns_); // Does work: //QRect bb2((int)(w*x_[i]), int(y_[i]*h), ns_, ns_); [2003-01-01] [parser] array declarator confusion Old Synopsis: [parser] array declarator confusion New Synopsis: class QRect { public: QRect(int, int, int, int) {} }; void ex() { double x_[10], y_[10]; int w, h, ns_, i; // Does not work: QRect bb2(int(x_[i]*w), int(y_[i]*h), ns_, ns_); // Does work: //QRect bb2(int(w*x_[i]), int(y_[i]*h), ns_, ns_); // Does work: //QRect bb2((int)(x_[i]*w), int(y_[i]*h), ns_, ns_); // Does work: //QRect bb2((int)(w*x_[i]), int(y_[i]*h), ns_, ns_); [2003-01-01] [parser] array declarator confusion State-Changed-From-To: suspended->analyzed State-Changed-By: paolo State-Changed-When: Wed Jan 1 13:55:02 2003 State-Changed-Why: Still present in mainline after the new parser merge. http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=2478