New issue
Advanced search Search tips

Issue 891118 link

Starred by 1 user

Issue metadata

Status: Untriaged
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Add compiler error for lossy conversion from int to bool

Project Member Reported by chrishtr@chromium.org, Oct 2

Issue description

The compile should fail for code like:

int foo = 22;
bool bar = foo;

because of the loss of precision when converting foo to bar.

As motivation, the absence of this check led to an M69 regression. See  crbug.com/884185 .
 
Labels: Postmortem-Followup

Sign in to add a comment