This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/51527] New: ICE: Segmentation fault: 'convert_to_integer' enters infinite recursion


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

             Bug #: 51527
           Summary: ICE: Segmentation fault: 'convert_to_integer' enters
                    infinite recursion
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: gjl@gcc.gnu.org
              Host: i686-pc-linux-gnu
            Target: avr
             Build: i686-pc-linux-gnu


== Code ==

void test_1 (void)
{
  int i;

  // notice it works with __uint24
  __int24 a, b;

  for (i = 0; i < 500; i++)
  {
      if (i & 1)
          a += 0x7654321L;
      else
          b += 0x5fe453L;
  }
}

This code enters infinite recurson.

Configured with: ../../gcc.gnu.org/trunk/configure --target=avr
--prefix=/home/georg/install/gcc-4.7 --disable-nls --enable-languages=c,c++
--with-dwarf2 --enable-checking=yes,rtl


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]