This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: throw std::bad_cast - cannot compile


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]