c++/2478: class QRect {
paolo@gcc.gnu.org
paolo@gcc.gnu.org
Wed Jan 1 21:55:00 GMT 2003
};
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
More information about the Gcc-prs
mailing list