G++ bug
Martin v. Loewis
martin@mira.isdn.cs.tu-berlin.de
Thu Sep 30 19:57:00 GMT 1999
> Problem: GCC can not distinct 'typedef unsigned int
> Rgb' from 'char *' in overloaded constructor when
> argument is 'Rgb(0)'.
Thanks for your bug report. This is a well-known problem, please see
http://egcs.cygnus.com/bugs.html (Parse errors for "simple" code).
In your case, the work-around is to write
QColorGroup q( (0,QColor(QRgb(0))) );
Hope this helps,
Martin
More information about the Gcc-bugs
mailing list