#1342 C++ Direct initialization is not supported/parsed correctly

open
nobody
None
5
2013-10-17
2013-10-17
Rolf Theunissen
No

The following line, c++ direct initialization of a integer, leads to a parse error:

int a(3);

480: Error: Syntax error in input(1).

Furthermore, constants defined using direct initialization are not wrapped as constants:

const int b(static_cast<int>(ENUM_ITEM));

is translated as function with an argument.

Discussion

  • const int b(static_cast<int>(ENUM_ITEM));

     
    Last edit: Rolf Theunissen 2013-10-17