[Bug c++/56728] New: ICE using constexpr initialization and arrays

npl at chello dot at gcc-bugzilla@gcc.gnu.org
Mon Mar 25 20:30:00 GMT 2013


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

             Bug #: 56728
           Summary: ICE using constexpr initialization and arrays
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: npl@chello.at


Created attachment 29722
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29722
code to raise the ICE

gcc 4.8.0 raises an ICE when fed with the provided code, while gcc 4.7.2 has no
problems.
removing either of the constexpr fixes the issue, and one of them probably
shouldnt pass as constexpr in the first place (Im not really adept at
interpreting the official C++11 standard but AFAIR reinterpret casts arent
allowed?)



internal compiler error: in gimple_expand_cfg, at cfgexpand.c:4575

------------------------------------------------------
used gcc:
Using built-in specs.
COLLECT_GCC=./tc/bin/arm-none-eabi-g++
COLLECT_LTO_WRAPPER=/opt/tc48/libexec/gcc/arm-none-eabi/4.8.0/lto-wrapper
Target: arm-none-eabi
Configured with: /opt/tc48/src/gcc-4.8.0/configure --prefix=/opt/tc48
--target=arm-none-eabi --enable-languages=c,c++ --disable-libstdcxx-verbose
--disable-libmudflap --disable-libssp --disable-libstdcxx-pch --enable-multilib
--disable-shared --disable-nls --with-system-zlib --enable-tls --enable-gold
--with-gnu-as --with-gnu-ld --enable-lto --with-newlib
--with-gmp=/home/tcbuild/toolchain-make/build/ggcnativebuild/gmp-5.1.1
--with-mpfr=/home/tcbuild/toolchain-make/build/ggcnativebuild/mpfr-3.1.2
--with-mpc=/home/tcbuild/toolchain-make/build/ggcnativebuild/mpc-1.0.1
--with-cloog=/home/tcbuild/toolchain-make/build/ggcnativebuild/cloog-0.18.0
--with-isl=/home/tcbuild/toolchain-make/build/ggcnativebuild/isl-0.11.1
--with-host-libstdcxx='-Wl,-Bstatic,/usr/lib/gcc/i486-linux-gnu/4.4.5/libstdc++.a,/usr/lib/gcc/i486-linux-gnu/4.4.5/libsupc++.a,-Bdynamic
-lm'
Thread model: single
gcc version 4.8.0 (GCC)



More information about the Gcc-bugs mailing list