This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/14511] "pure virtual method called" error when calling a method on a static_casted object
- From: "bryner at brianryner dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Mar 2004 07:04:31 -0000
- Subject: [Bug optimization/14511] "pure virtual method called" error when calling a method on a static_casted object
- References: <20040310070324.14511.bryner@brianryner.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bryner at brianryner dot com 2004-03-10 07:04 -------
Created an attachment (id=5891)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5891&action=view)
testcase
testcase output:
$ c++ -O2 -o test_virt_cast test_virt_cast.cpp
$ ./test_virt_cast
pure virtual method called
terminate called without an active exception
Aborted
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14511