From: <neal@ctd.comsat.com>
To: egcs@cygnus.com
Subject: 971127 array initialization problem!?!
Date: Sun, 30 Nov 1997 07:17:00 -0000 [thread overview]
Message-ID: <E0xcB9E-00003z-00@neal.fred.net> (raw)
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)
next reply other threads:[~1997-11-30 7:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-11-30 7:17 neal [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E0xcB9E-00003z-00@neal.fred.net \
--to=neal@ctd.comsat.com \
--cc=egcs@cygnus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).