
19 Dec
2008
19 Dec
'08
9:50 p.m.
On Fri, Dec 19, 2008 at 1:42 PM, Christian Henning
This following code sample will crash the MS compiler version 8. I hope there are some MS folks reading this mailing list, since I have no idea where else to post this.
#include
struct A { void operator() () { boost::bind( &A::lookup, *this, unsigned char() )(); }
void lookup( unsigned char& c ) {} };
int main(int argc, char* argv[]) { A()();
return 0; }
I know the code is not suppose to compile. Uncommenting the this pointer in the bind construct will make the code compile fine.
MSVC 8 has several similar crashes. At least it does not crash if you feed it valid C++ :) Emil Dotchevski Reverge Studios, Inc. http://www.revergestudios.com/reblog/index.php?n=ReCode