This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
throw std::bad_cast - cannot compile
- To: egcs-bugs at cygnus dot com, gcc-bugs at gcc dot gnu dot org
- Subject: throw std::bad_cast - cannot compile
- From: Yotam Medini <ymedini at iil dot intel dot com>
- Date: Tue, 25 Jul 2000 17:30:01 +0300
- Reply-to: ymedini at iil dot intel dot com
iwsl010:90> g++ -v
Reading specs from /afs/iil/nike/data/tools/sys/gcc-2.95.2/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/specs
gcc version 2.95.2 19991024 (release)
iwsl010:91> cat throw.cc
#include <typeinfo>
void dum() {
#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 `;'
iwsl010:93> g++ -c -DBE_GENTLE_TO_GCC throw.cc
iwsl010:94>