throw std::bad_cast - cannot compile
Nathan Sidwell
nathan@codesourcery.com
Tue Jul 25 08:00:00 GMT 2000
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
More information about the Gcc-bugs
mailing list