This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/49996] New: Internal error in verify_gimple_stmt: initializing struct in new-initializer
- From: "vituscze at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 5 Aug 2011 21:43:58 +0000
- Subject: [Bug c++/49996] New: Internal error in verify_gimple_stmt: initializing struct in new-initializer
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49996
Summary: Internal error in verify_gimple_stmt: initializing
struct in new-initializer
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: vituscze@gmail.com
Created attachment 24927
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24927
-save-temps, bug.s contains `.file "bug.cpp"` only
Hello there,
g++ crashes while compiling following code:
struct A
{
~A()
{ }
};
struct B
{
const A& ref;
};
int main()
{
B* p = new B{A()};
}
Here's complete error message:
bug.cpp: In function 'int main()':
bug.cpp:12:5: internal compiler error: in verify_gimple_stmt, at
tree-cfg.c:4056
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Command line:
g++ bug.cpp -o bug -std=c++0x
Output of g++ -v:
Built by Equation Solution <http://www.Equation.com>.
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=d:/gcc/bin/../libexec/gcc/i686-pc-mingw32/4.7.0/lto-wrapper.exe
Target: i686-pc-mingw32
Configured with: ../gcc-4.7-20110730-mingw/configure --host=i686-pc-mingw32
--build=x86_64-unknown-linux-gnu --target=i686-pc-mingw32
--prefix=/home/gfortran/gcc-home/binary/mingw32/native/x86_32/gcc/4.7-20110730
--with-gcc --with-gnu-as --with-gnu-ld --with-host-libstdcxx='-lstdc++ -lsupc++
-lm' --with-ppl=/home/gfortran/gcc-home/binary/mingw32/native/x86_32/ppl
--with-cloog=/home/gfortran/gcc-home/binary/mingw32/native/x86_32/cloog
--with-gmp=/home/gfortran/gcc-home/binary/mingw32/native/x86_32/gmp
--with-mpfr=/home/gfortran/gcc-home/binary/mingw32/native/x86_32/mpfr
--with-mpc=/home/gfortran/gcc-home/binary/mingw32/native/x86_32/mpc
--with-sysroot=/home/gfortran/gcc-home/binary/mingw32/cross/x86_32/gcc/4.7-20110730
--disable-shared --disable-nls --disable-tls --disable-win32-registry
--enable-libquadmath-support --enable-libquadmath
--enable-languages=c,c++,fortran --enable-libgomp --enable-threads=win32
--enable-lto --enable-static --enable-shared=lto-plugin --enable-plugins
--enable-ld=yes --enable-cloog-backend=ppl
Thread model: win32
gcc version 4.7.0 20110730 (experimental) (GCC)
Output of -save-temps is in attachment, 'bug.s' contains '.file "bug.cpp"'
only.
Thanks for your time,
VÃt Åefl