From: Martin Ambuhl Newsgroups: comp.os.msdos.djgpp Subject: Re: General Protection Fault when using dynamic_cast<>() Date: Tue, 29 Dec 1998 18:05:01 -0500 Content-Transfer-Encoding: 7bit References: <3686d822 DOT 17161721 AT news DOT ntu DOT edu DOT tw> X-Posted-Path-Was: not-for-mail X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-ELN-Date: 29 Dec 1998 23:05:25 GMT X-ELN-Insert-Date: Tue Dec 29 15:15:01 1998 Organization: Nocturnal Aviation Lines: 21 Mime-Version: 1.0 NNTP-Posting-Host: 1cust248.tnt11.nyc3.da.uu.net Message-ID: <3689601D.7D53C032@earthlink.net> X-Mailer: Mozilla 4.5 [en] (Win95; I) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com OliverWu wrote: > > Hi, > I'm having trouble running this program. A runtime error, > General Protection Fault, occurs when I'm trying to run the ctor > postfix_statement::postfix_statement(const infix_statement &) > > /*--------------------------Program begins--------------------------*/ > > class element; > class statement_operator: public element; > class statement_operand: public element > class statement; At this point, you already have several fatal errors. What is your real program? -- Martin Ambuhl (mambuhl AT earthlink DOT net) Note: mambuhl AT tiac DOT net will soon be inactive