The following code

int main()
{
   int x { 22.2 };
}

includes an initialization which requires narrowing, but the code compiles fine
without any error/warning.


-- 
           Summary: Narrowing error not detected
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: saurabh dot manchanda at yahoo dot co dot in


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45378

Reply via email to