971127 array initialization problem!?!
neal@ctd.comsat.com
neal@ctd.comsat.com
Sun Nov 30 07:17:00 GMT 1997
This trivial test program seems to show a serious problem with array
initialization in g++ egcs-971127 (or has something changed in recent
c++ that I'm not aware of?)
struct QBitmap {
QBitmap (int,int, bool=false);
};
main () {
QBitmap* x = new QBitmap(2,2);
QBitmap* y = new QBitmap[5](2,2);
}
g++ -c Test.c
Test.c: In function `int main()':
Test.c:9: no matching function for call to `QBitmap::QBitmap (int)'
Test.c:5: candidates are: QBitmap::QBitmap(const QBitmap &)
Test.c:4: QBitmap::QBitmap(int, int, bool)
More information about the Gcc
mailing list