[Bug c++/50841] New: [4.7 regression] bootstrap failure: narrowing conversion of '-0x00000000000000001' from 'int' in tree-object-size.c

gerald at pfeifer dot com gcc-bugzilla@gcc.gnu.org
Sun Oct 23 20:05:00 GMT 2011


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

             Bug #: 50841
           Summary: [4.7 regression] bootstrap failure: narrowing
                    conversion of '-0x00000000000000001' from 'int' in
                    tree-object-size.c
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: gerald@pfeifer.com


/scratch/tmp/gerald/gcc-HEAD/gcc/tree-object-size.c:44:59: error: narrowing
conv
ersion of '-0x00000000000000001' from 'int' to 'long unsigned int' inside { }
[-
Werror=narrowing]
/scratch/tmp/gerald/gcc-HEAD/gcc/tree-object-size.c:44:59: error: narrowing
conv
ersion of '-0x00000000000000001' from 'int' to 'long unsigned int' inside { }
[-
Werror=narrowing]
cc1plus: all warnings being treated as errors
gmake[3]: Leaving directory `/local0/scratch/gerald/OBJ-1023-1848/gcc'
gmake[2]: *** [all-stage2-gcc] Error 2
gmake[2]: Leaving directory `/local0/scratch/gerald/OBJ-1023-1848'
gmake[1]: *** [stage2-bubble] Error 2

I have a hunch this may be triggered, though not necessarily originally
caused, by

        2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/50810
        * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
        of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
        Wnarrowing for C++0x and C++98.
        * c.opt ([Wnarrowing]): Update.



More information about the Gcc-bugs mailing list