public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/50473] New: [C++0x] ICE in type_has_nontrivial_copy_init, at cp/tree.c:2574
@ 2011-09-21 13:10 y121516 at gmail dot com
  2011-09-22 17:13 ` [Bug c++/50473] " paolo.carlini at oracle dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: y121516 at gmail dot com @ 2011-09-21 13:10 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 50473
           Summary: [C++0x] ICE in type_has_nontrivial_copy_init, at
                    cp/tree.c:2574
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: y121516@gmail.com


ICE occured.

Codes (a.cpp):

template<unsigned N>
struct s
{};

template<class... Ts>
constexpr s<sizeof...(Ts)> f()
{
 return {};
}

template<class T>
struct test
{
 static constexpr auto&& value = f();
};

int main(){}


Compile error messages:

$ g++4.7 -std=c++0x -Wall -Wextra -pedantic a.cpp
a.cpp:14:36: internal compiler error: in type_has_nontrivial_copy_init, at
cp/tree.c:2574
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


Vesion info:

$ g++4.7 -v
Built by Equation Solution <http://www.Equation.com>.
Using built-in specs.
COLLECT_GCC=C:\cygwin\home\RiSK\misc\gcc4.7\bin\g++.exe
COLLECT_LTO_WRAPPER=c:/cygwin/home/risk/misc/gcc4.7/bin/../libexec/gcc/i686-pc-mingw32/4.7.0/lto-wrapper.exe
Target: i686-pc-mingw32
Configured with: ../gcc-4.7-20110917-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-20110917
--with-gcc --with-gnu
-as --with-gnu-ld --with-host-libstdcxx='-lstdc++ -lsupc++ -lm'
--with-ppl=/home/gfortran/gcc-home/binary/mingw32/nat
ive/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-mp
c=/home/gfortran/gcc-home/binary/mingw32/native/x86_32/mpc
--with-sysroot=/home/gfortran/gcc-home/binary/mingw32/cros
s/x86_32/gcc/4.7-20110917 --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 20110917 (experimental) (GCC)


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-11-17 20:21 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-21 13:10 [Bug c++/50473] New: [C++0x] ICE in type_has_nontrivial_copy_init, at cp/tree.c:2574 y121516 at gmail dot com
2011-09-22 17:13 ` [Bug c++/50473] " paolo.carlini at oracle dot com
2011-10-17 10:55 ` paolo.carlini at oracle dot com
2011-11-11  6:04 ` paolo.carlini at oracle dot com
2011-11-11 11:22 ` paolo.carlini at oracle dot com
2011-11-11 21:54 ` jason at gcc dot gnu.org
2014-11-17  4:36 ` jason at gcc dot gnu.org
2014-11-17 20:18 ` jason at gcc dot gnu.org
2014-11-17 20:21 ` jason at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).