From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29212 invoked by alias); 30 Jul 2012 14:17:54 -0000 Received: (qmail 29202 invoked by uid 22791); 30 Jul 2012 14:17:51 -0000 X-SWARE-Spam-Status: No, hits=-3.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_CX,TW_DC,TW_JL,TW_YM X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 30 Jul 2012 14:17:36 +0000 From: "morpheby at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/54126] New: ICE on constexpr move ctor with const ref type instead of error Date: Mon, 30 Jul 2012 14:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: morpheby at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-07/txt/msg02152.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54126 Bug #: 54126 Summary: ICE on constexpr move ctor with const ref type instead of error Classification: Unclassified Product: gcc Version: 4.7.2 Status: UNCONFIRMED Severity: minor Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: morpheby@gmail.com Compiling attached source fails with ICE: $ gcc -std=c++11 gcc-bug.cpp --save-temps gcc-bug.cpp: In instantiation of 'constexpr ClassA::ClassA(U1&&) [with U1 = int; T1 = const ClassB&]': gcc-bug.cpp:34:3: required from here gcc-bug.cpp:22:12: internal compiler error: in build_data_member_initialization, at cp/semantics.c:5790 GCC version dump: $ gcc -v Using built-in specs. COLLECT_GCC=C:\MinGW\bin\gcc.exe COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/i686-w64-mingw32/4.7.2/lto-wrapp er.exe Target: i686-w64-mingw32 Configured with: ../..//mingw-src/gcc-4_7-branch/configure --host=i686-w64-mingw 32 --build=i686-w64-mingw32 --target=i686-w64-mingw32 --prefix=/mingw-gcc-4_7-br anch-x32 --with-sysroot=/mingw-gcc-4_7-branch-x32 --enable-shared --enable-stati c --enable-targets=all --enable-multilib --enable-languages=c,c++,fortran,lto -- enable-libstdcxx-time=yes --enable-threads=posix --enable-libgomp --enable-lto - -enable-graphite --enable-cloog-backend=isl --enable-checking=release --enable-f ully-dynamic-string --enable-version-specific-runtime-libs --enable-sjlj-excepti ons --disable-ppl-version-check --disable-cloog-version-check --disable-libstdcx x-pch --disable-libstdcxx-debug --disable-bootstrap --disable-rpath --disable-wi n32-registry --disable-nls --disable-werror --disable-symvers --with-gnu-ld --wi th-tune=generic --with-host-libstdcxx='-static -lstdc++' --with-libiconv --with- gmp=/mingw-gcc-4_7-branch-libs-x32 --with-mpfr=/mingw-gcc-4_7-branch-libs-x32 -- with-mpc=/mingw-gcc-4_7-branch-libs-x32 --with-ppl=/mingw-gcc-4_7-branch-libs-x3 2 --with-cloog=/mingw-gcc-4_7-branch-libs-x32 --with-pkgversion='MinGW-builds: h ttp://sourceforge.net/projects/mingwbuilds/' --with-bugurl=http://sourceforge.ne t/projects/mingwbuilds/ CFLAGS='-O2 -pipe -fomit-frame-pointer -momit-leaf-frame -pointer -I/mingw-gcc-4_7-branch-libs-x32/include' CXXFLAGS='-O2 -pipe -fomit-fr ame-pointer -momit-leaf-frame-pointer' CPPFLAGS= LDFLAGS='-pipe -s -L/mingw-gcc- 4_7-branch-libs-x32/lib -L/mingw-gcc-4_7-branch-x32/bin' Thread model: posix gcc version 4.7.2 20120727 (prerelease) (MinGW-builds: http://sourceforge.net/pr ojects/mingwbuilds/)