https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88886

            Bug ID: 88886
           Summary: ice in get_constant, at c-family/c-format.c:292
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

For this broken C code:

int sscanf(long, unsigned[], ...);
void a() { sscanf(0, ""); }

recent gcc trunk with flag -Wall does this:

bug496.c:2:1: internal compiler error: in get_constant, at
c-family/c-format.c:2
92
0x5e97e1 get_constant
        ../../trunk/gcc/c-family/c-format.c:292
0x5e97e1 get_constant
        ../../trunk/gcc/c-family/c-format.c:280
0x5e97e1 decode_format_attr
        ../../trunk/gcc/c-family/c-format.c:346

This seems to have been going wrong since sometime before revision 267000.

Reply via email to