[GCC-XML] assert with VC71

Stefan Roiser stefan.roiser at cern.ch
Fri Jan 27 02:13:42 EST 2006


we discovered a problem with assert on VC71. Gccxml replaces assert.h  
for this compiler with its own assert definition

#define assert(exp) (void)( (exp) || (_assert((void*)#exp, __FILE__,  
__LINE__), 0) )

The cast to (void*) is causing us problems (cannot cast const char*  
to void*). The original definition without the cast works. Could this  
cast be removed again or will it break something else?

Thanks for any help


Stefan Roiser
CERN, PH Department
CH - 1211 Geneva 23
Mob:+41 76 487 5334
Tel:+41 22 767 4838
Fax:+41 22 767 9425

More information about the gccxml mailing list