It happens in 2.12.1 but not in 1.9 so it seems like a regression. I have only tested it in these two versions.
Here's the smallest repro I could think of that triggers it:
auto dur = 100ms - 75ms; auto res = dur > 50ms ? 42 : 89;
Please note that the following does not trigger the error:
auto dur = 100ms; auto res = dur > 50ms ? 42 : 89;
Neither does this:
auto dur = 100ms - 75ms; auto res = dur > 50ms;
However it will also trigger if the comparison is done in an if-statement instead of a ternary expression.
It looks like those examples are fixed in head.
Ah, thanks, I'll see if we can upgrade.
Log in to post a comment.
It happens in 2.12.1 but not in 1.9 so it seems like a regression. I have only tested it in these two versions.
Here's the smallest repro I could think of that triggers it:
Please note that the following does not trigger the error:
Neither does this:
However it will also trigger if the comparison is done in an if-statement instead of a ternary expression.
It looks like those examples are fixed in head.
Ah, thanks, I'll see if we can upgrade.