Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

virtual functions

0 views
Skip to first unread message

Joseph K. Woelfe

unread,
Jun 25, 1994, 10:32:49 PM6/25/94
to
I have been unable to get virtual functions to work properly using g++.
When I declare a member function as virtual the code compiles but crashes
when it runs saying "illegal instruction" at the point where the virtual
member function is called. Simply removing the word virtual eliviates
this problem. I should note that all this happens even without overidding
the virtual function using a derived class.

This seems to be too simple of a thing to be a bug. Could it be because
I'm not using the #pragma implementation and #pragma interface
directives? If so, where can I get more information?

-Joseph K. Woelfel <jkwo...@mailbox.syr.edu>

Fergus Henderson

unread,
Jun 26, 1994, 1:29:58 PM6/26/94
to
jkwo...@mailbox.syr.edu (Joseph K. Woelfe) writes:

>I have been unable to get virtual functions to work properly using g++.

[...]


>This seems to be too simple of a thing to be a bug. Could it be because
>I'm not using the #pragma implementation and #pragma interface
>directives?

No, that shouldn't be required.
But you haven't given us nearly enough information to solve your
problem. Please read the instructions in the "Bugs" chapter of
the GCC Manual about reporting bugs, and then file a *complete* bug
report. Email me if you need directions on how to obtain the gcc
documentation.

--
Fergus Henderson - f...@munta.cs.mu.oz.au

0 new messages