www.digitalmars.com         C & C++   DMDScript  

c++.command-line - 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
Dec 29 2006