reg...@john-home:~/volatile/bugs/tmp269$ current-gcc -O small.c -c
small.c: In function ‘func_34’:
small.c:16:1: internal compiler error: in completely_scalarize_record, at
tree-sra.c:855
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

reg...@john-home:~/volatile/bugs/tmp269$ cat small.c

struct S0
{
  unsigned char f0;
  int:0;
};

struct S1
{
  struct S0 f0;
};

struct S1 func_34 (void)
{
  struct S1 l_221 = { { 1 } };
  return l_221;
}

reg...@john-home:~/volatile/bugs/tmp269$ current-gcc -v

Using built-in specs.
COLLECT_GCC=current-gcc
COLLECT_LTO_WRAPPER=/home/regehr/z/tmp/gcc-r157027-install/libexec/gcc/i686-pc-linux-gnu/4.5.0/lto-wrapper
Target: i686-pc-linux-gnu
Configured with: ../configure --with-libelf=/usr/local --enable-lto
--prefix=/home/regehr/z/tmp/gcc-r157027-install --program-prefix=r157027-
--enable-languages=c,c++
Thread model: posix
gcc version 4.5.0 20100224 (experimental) (GCC)


-- 
           Summary: ice in completely_scalarize_record, at tree-sra.c:85
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: regehr at cs dot utah dot edu
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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

Reply via email to