This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: throw std::bad_cast - cannot compile
- To: ymedini at iil dot intel dot com
- Subject: Re: throw std::bad_cast - cannot compile
- From: Nathan Sidwell <nathan at codesourcery dot com>
- Date: Tue, 25 Jul 2000 16:02:40 +0100
- CC: egcs-bugs at cygnus dot com, gcc-bugs at gcc dot gnu dot org
- Organization: Codesourcery LLC
- References: <200007251430.RAA07414@iwsl010.iil.intel.com>
Yotam Medini wrote:
> #if !defined(BE_GENTLE_TO_GCC)
> throw std::bad_cast;
()
> #else
> std::bad_cast bc;
> throw bc;
> #endif
> }
> iwsl010:92> g++ -c throw.cc
> throw.cc: In function `void dum()':
> throw.cc:4: parse error before `;'
Yes, you're missing `()'
nathan
--
Dr Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
'But that's a lie.' - 'Yes it is. What's your point?'
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org