c++.command-line - Bad syntax crashes compiler
- tjulian <tjulian removethis.oldi.com> Dec 29 2006
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








tjulian <tjulian removethis.oldi.com>