c++.command-line - Bad syntax crashes compiler
- tjulian (16/16) Dec 29 2006 The following code crashes the compiler, a typo in my code contained a
The following code crashes the compiler, a typo in my code contained a syntax error. // compile with dmc -c -mn // begin snippet #define FOOMAC(a, b) \ { \ if (a) \ { \ foo(b); \ } \ } void bar(int a) { FOOMAC(a == 0), 0); // this line is bad syntax, crashes compiler } // end snippet
Dec 29 2006