www.digitalmars.com         C & C++   DMDScript  

c++.beta - DMC 8.39.1 bug: Internal error: go 237

Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Two different test files follow, though they probably trigger the
same bug.

Unrelated, when compiling without optimization it seems that DMC can
optimize bug03a.c while it cannot optimize bug03b.c, i.e. only
the first version of these two semantically identical macros can get 
optimized away if `expr' is constant at compile time.

#define ACCCHK_ASSERT(expr) \
         r &= ((expr) ? 1 : ((printf("ERROR: %s\n", #expr)), 0));

#define ACCCHK_ASSERT(expr) \
         r &= ((expr) || (printf("ERROR: %s\n", #expr), 0));

Markus
Dec 11 2003