public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/2478: class QRect {
@ 2003-01-01 21:55 paolo
  0 siblings, 0 replies; only message in thread
From: paolo @ 2003-01-01 21:55 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, kengole, nobody

};

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-01-01 21:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-01 21:55 c++/2478: class QRect { paolo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).