This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
971127 array initialization problem!?!
- To: egcs at cygnus dot com
- Subject: 971127 array initialization problem!?!
- From: <neal at ctd dot comsat dot com>
- Date: Sun, 30 Nov 1997 10:19:04 -0500
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)