The following valid code snippet triggers an ICE since GCC 4.3.0
when compiled with "-fmudflap -O":

=========================================
_Decimal128 foo(int n, ...)
{ 
  int i;
  _Decimal128 j;
  __builtin_va_list va;
  __builtin_va_start(va,n);
  for (i = 0; i < n; i++)
    j += __builtin_va_arg(va,_Decimal128);
  __builtin_va_end(va);
  return j;
}
=========================================

bug.c: In function 'foo':
bug.c:2: error: invalid operand to binary operator
<retval>

bug.c:2: internal compiler error: verify_stmts failed
Please submit a full bug report, [etc.]


-- 
           Summary: [4.3/4.4 regression] ICE with _Decimal128 and va_list
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, monitored
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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

Reply via email to