public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "Christian II" <CHRISTIANII@prodigy.net> To: <egcs-bugs@egcs.cygnus.com> Subject: Is this a bug? Date: Tue, 11 May 1999 21:09:00 -0000 [thread overview] Message-ID: <000501be9c2c$c17c5e80$e712fdd1@john> (raw) Is this a bug in the compiler? I am using version 1.1.2 of the egcs compiler; and when I compile the following program in DOS or linux, I get this output: test.cpp: In function `int main()': test.cpp:33: no matching function for call to `Triangle::render (int, int, int)' test.cpp:27: candidates are: Triangle::render() Shouldn't it call Object::render(float, float, float)? Instead, Triangle::render() overrides it! Could you please E-mail me about this at: christianii@prodigy.net // test program class Object { public: virtual void move(float x, float y, float z); virtual void render(); // render at origin void render(float x, float y, float z) // render at x,y,z {move(x,y,z); render(); move(-x,-y,-z);} }; class Triangle { float v[3][3]; public: virtual void move(float x, float y, float z); virtual void render(); }; main() { Triangle t; t.render(0, 0, -5); }
next reply other threads:[~1999-05-11 21:09 UTC|newest] Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top 1999-05-11 21:09 Christian II [this message] 1999-05-11 23:44 ` Martin v. Loewis [not found] <007d01bf6988$d2fb0c40$795d608c@ccl.itri.org.tw> 2000-01-30 2:45 ` Martin v. Loewis 2000-01-30 16:44 Kuo Yu Chuang 2000-12-06 3:42 Martin Kahlert 2002-08-30 2:41 Ritzert 2002-09-03 14:07 ` Matt Austern 2002-09-10 1:06 ` Michael Ritzert 2003-01-02 21:21 Songtao Chen 2003-01-02 21:24 ` Neil Booth 2003-01-02 21:42 ` Songtao Chen 2003-01-02 21:46 ` Neil Booth 2003-01-02 23:00 ` Songtao Chen 2003-01-13 5:17 ` Zack Weinberg 2003-01-13 5:17 ` Songtao Chen 2003-02-06 21:33 Matthew Toseland 2003-02-06 22:18 ` Falk Hueffner 2003-08-21 9:23 Lev Assinovsky
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='000501be9c2c$c17c5e80$e712fdd1@john' \ --to=christianii@prodigy.net \ --cc=egcs-bugs@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: linkBe 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).