Author Topic: compiler error (get_rule()) again  (Read 1496 times)


  • Guest
compiler error (get_rule()) again
« on: June 18, 2011, 01:52:21 pm »
Hi Pelle,

I also got that compiler error and could reduce it to the following example code:
Code: [Select]
#include <stdbool.h>

void f1(bool x)
  // Do nothing   

// Compiler (V6.50) generates error code:1 -> "bug_demo.c(9): fatal error: Internal error: get_rule()."
void f2(int i)
  f1( i );

A cast f1( (bool)i ) doesn't help. It has to be written f1( i ? true : false ) to avoid the error.

BTW: I use Windows Vista (if that matters).

Kindly regards,