NO

Author Topic: Hex constants parsing bug V8R8 (and previous maybe)  (Read 2318 times)

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 2096
Hex constants parsing bug V8R8 (and previous maybe)
« on: March 22, 2015, 11:35:55 AM »
The parser confuses the final digit 'e' of an hex constant with the exponent 'e' of floats.
Code: [Select]
int main(int argc, char *argv[])
{
    int a = 0xe+1;  // error #2182: '0xe+1' is a preprocessing number but an invalid integer constant.
}

Adding spaces after 'e remove the error.
It is better to be hated for what you are than to be loved for what you are not. - Andre Gide