The following code contains an implicit integer conversion involving a data
loss. There is no warning issued even when -Wall is specified.

int main()
{
        int i = 0x12345678;
        char c = i;  // No warning is issued here
}


-- 
           Summary: No warning is issued when an implicit conversion can
                    lead to a data loss
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: photon at seznam dot cz


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

Reply via email to