Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
Qt Creator 5.0.1
-
None
Description
struct S
{ int x; };
S f(int x)
{
return S{int{x ? 1 : 0}};
}
will break indentation down the code (see screenshot).
The workaround is to use classic ctor (S()).
Deleting conditional expression (S{int{x}}) makes the bug disappear.