[Bug c++/57427] New: ICE in gimplify_init_constructor

2013-05-27 Thread y...@momonga-linux.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57427

Bug ID: 57427
   Summary: ICE in gimplify_init_constructor
   Product: gcc
   Version: 4.8.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
  Assignee: unassigned at gcc dot gnu.org
  Reporter: y...@momonga-linux.org

I found ICE with the following code;

$ cat test.cpp
struct A {
  A();
};
static const struct {
  A a;
} b[3] = {
};

$ g++-4.8 -c bug.cpp
bug.cpp: In function ‘void __static_initialization_and_destruction_0(int,
int)’:
bug.cpp:7:1: internal compiler error: in gimplify_init_constructor, at
gimplify.c:4269
 };
 ^

$ g++-4.8 -v 
Using built-in specs.
COLLECT_GCC=g++-4.8
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.8.0-7'
--with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs
--enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.8 --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls
--with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug
--enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin
--with-system-zlib --enable-objc-gc --enable-multiarch --with-arch-32=i586
--with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic
--enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu
--target=x86_64-linux-gnu
Thread model: posix
gcc version 4.8.0 (Debian 4.8.0-7) 

It also ices with the following GCCs;
- gcc version 4.8.1 20130523
- gcc version 4.7.4 20130504

[Bug c/48060] New: internal compiler error: in dfs_enumerate_from, at cfganal.c:1209

2011-03-10 Thread y...@momonga-linux.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48060

   Summary: internal compiler error: in dfs_enumerate_from, at
cfganal.c:1209
   Product: gcc
   Version: 4.6.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: y...@momonga-linux.org


gcc 4.6.0 20110305 ICEs with "-O3" when using the following code;




typedef struct  {
  unsigned long status;
} Table;

extern Table* table;
extern void func2(Table *p);

int func(int a)
{
  while (a) {
unsigned long b;
Table *p;

p = &table[b];

if (!p || (p->status & (b))) {
  p = 0;
}
if (p && p->status) {
  func2(p);
}
  }
  return 1;
}