public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* 971127 array initialization problem!?!
@ 1997-11-30  7:17 neal
  1997-11-30 14:29 ` Alexandre Oliva
  1997-11-30 23:52 ` Lassi A. Tuura
  0 siblings, 2 replies; 5+ messages in thread
From: neal @ 1997-11-30  7:17 UTC (permalink / raw)
  To: egcs

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)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1997-12-01 11:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-11-30  7:17 971127 array initialization problem!?! neal
1997-11-30 14:29 ` Alexandre Oliva
1997-11-30 23:52 ` Lassi A. Tuura
1997-12-01  2:46   ` Robert Wilhelm
1997-12-01 11:32     ` Joe Buck

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).