December 29, 2006 Bad syntax crashes compiler | ||||
---|---|---|---|---|
| ||||
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 |
Copyright © 1999-2021 by the D Language Foundation