public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/64520] New: [4.8/4.9/5 Regression] ICE with std::initializer_list
@ 2015-01-07 12:00 jakub at gcc dot gnu.org
2015-01-07 12:25 ` [Bug c++/64520] " jakub at gcc dot gnu.org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-01-07 12:00 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64520
Bug ID: 64520
Summary: [4.8/4.9/5 Regression] ICE with std::initializer_list
Product: gcc
Version: 5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: jakub at gcc dot gnu.org
CC: jason at gcc dot gnu.org
namespace std {
template <class> class initializer_list;
}
struct A {
template <typename... B> A(std::initializer_list<B...>);
};
A a { 0 };
ICEs with:
./cc1plus -quiet -std=c++0x rh1176446.ii
rh1176446.ii: In substitution of ‘template<class ... B>
A::A(std::initializer_list<B ...>) [with B = <missing>]’:
rh1176446.ii:7:9: required from here
rh1176446.ii:7:9: internal compiler error: in unify, at cp/pt.c:18523
A a { 0 };
^
starting with r179436.
>From gcc-bugs-return-472377-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jan 07 12:24:33 2015
Return-Path: <gcc-bugs-return-472377-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 25115 invoked by alias); 7 Jan 2015 12:24:32 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 25044 invoked by uid 48); 7 Jan 2015 12:24:28 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/64521] New: [4.9/5 Regression] ICE with -frepo
Date: Wed, 07 Jan 2015 12:24: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-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc
Message-ID: <bug-64521-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-01/txt/msg00371.txt.bz2
Content-length: 1288
https://gcc.gnu.org/bugzilla/show_bug.cgi?idd521
Bug ID: 64521
Summary: [4.9/5 Regression] ICE with -frepo
Product: gcc
Version: 5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: jakub at gcc dot gnu.org
CC: jason at gcc dot gnu.org
template <typename H> struct J { J(H); };
template <unsigned long, typename...> struct K;
template <unsigned long I> struct K<I> {};
template <unsigned long I, typename H, typename... T>
struct K<I, H, T...> : K<I + 1, T...>, J<H> {
K(const H &p1, const T &... p2) : K<I + 1, T...>(p2...), J<H>(p1) {}
};
template <typename... E> struct C : K<0, E...> {
C(const E &... p1) : K<0, E...>(p1...) {}
};
template <typename> struct A {
A() = default;
};
struct M;
template <typename> struct L {
struct B {
template <typename> static M *__test(...);
typedef A<int> _Del;
typedef decltype(__test<_Del>()) type;
};
C<typename B::type, A<M>> _M_t;
L(typename B::type) : _M_t(0, A<M>()) {}
};
struct M {};
void foo() { L<int>(new M); }
ICEs starting with r206182 with -frepo -std=c++11. Doesn't ICE without -frepo
or with r206181 or earlier.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/64520] [4.8/4.9/5 Regression] ICE with std::initializer_list 2015-01-07 12:00 [Bug c++/64520] New: [4.8/4.9/5 Regression] ICE with std::initializer_list jakub at gcc dot gnu.org @ 2015-01-07 12:25 ` jakub at gcc dot gnu.org 2015-01-07 15:54 ` ville.voutilainen at gmail dot com ` (4 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: jakub at gcc dot gnu.org @ 2015-01-07 12:25 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64520 Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |4.8.5 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/64520] [4.8/4.9/5 Regression] ICE with std::initializer_list 2015-01-07 12:00 [Bug c++/64520] New: [4.8/4.9/5 Regression] ICE with std::initializer_list jakub at gcc dot gnu.org 2015-01-07 12:25 ` [Bug c++/64520] " jakub at gcc dot gnu.org @ 2015-01-07 15:54 ` ville.voutilainen at gmail dot com 2015-01-12 18:27 ` jason at gcc dot gnu.org ` (3 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: ville.voutilainen at gmail dot com @ 2015-01-07 15:54 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64520 Ville Voutilainen <ville.voutilainen at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-invalid-code Status|UNCONFIRMED |NEW Last reconfirmed| |2015-01-07 CC| |ville.voutilainen at gmail dot com Ever confirmed|0 |1 --- Comment #1 from Ville Voutilainen <ville.voutilainen at gmail dot com> --- Clang rejects the code, so I'm for now marking this ice-on-invalid-code. ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/64520] [4.8/4.9/5 Regression] ICE with std::initializer_list 2015-01-07 12:00 [Bug c++/64520] New: [4.8/4.9/5 Regression] ICE with std::initializer_list jakub at gcc dot gnu.org 2015-01-07 12:25 ` [Bug c++/64520] " jakub at gcc dot gnu.org 2015-01-07 15:54 ` ville.voutilainen at gmail dot com @ 2015-01-12 18:27 ` jason at gcc dot gnu.org 2015-01-13 12:41 ` rguenth at gcc dot gnu.org ` (2 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: jason at gcc dot gnu.org @ 2015-01-12 18:27 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64520 Jason Merrill <jason at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/64520] [4.8/4.9/5 Regression] ICE with std::initializer_list 2015-01-07 12:00 [Bug c++/64520] New: [4.8/4.9/5 Regression] ICE with std::initializer_list jakub at gcc dot gnu.org ` (2 preceding siblings ...) 2015-01-12 18:27 ` jason at gcc dot gnu.org @ 2015-01-13 12:41 ` rguenth at gcc dot gnu.org 2015-01-13 21:05 ` jason at gcc dot gnu.org 2015-01-14 21:37 ` jason at gcc dot gnu.org 5 siblings, 0 replies; 7+ messages in thread From: rguenth at gcc dot gnu.org @ 2015-01-13 12:41 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64520 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/64520] [4.8/4.9/5 Regression] ICE with std::initializer_list 2015-01-07 12:00 [Bug c++/64520] New: [4.8/4.9/5 Regression] ICE with std::initializer_list jakub at gcc dot gnu.org ` (3 preceding siblings ...) 2015-01-13 12:41 ` rguenth at gcc dot gnu.org @ 2015-01-13 21:05 ` jason at gcc dot gnu.org 2015-01-14 21:37 ` jason at gcc dot gnu.org 5 siblings, 0 replies; 7+ messages in thread From: jason at gcc dot gnu.org @ 2015-01-13 21:05 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64520 --- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Tue Jan 13 21:04:28 2015 New Revision: 219557 URL: https://gcc.gnu.org/viewcvs?rev=219557&root=gcc&view=rev Log: PR c++/64520 * pt.c (unify): Don't try to deduce to std::initializer_list<T...>. Added: trunk/gcc/testsuite/g++.dg/cpp0x/initlist91.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/pt.c ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/64520] [4.8/4.9/5 Regression] ICE with std::initializer_list 2015-01-07 12:00 [Bug c++/64520] New: [4.8/4.9/5 Regression] ICE with std::initializer_list jakub at gcc dot gnu.org ` (4 preceding siblings ...) 2015-01-13 21:05 ` jason at gcc dot gnu.org @ 2015-01-14 21:37 ` jason at gcc dot gnu.org 5 siblings, 0 replies; 7+ messages in thread From: jason at gcc dot gnu.org @ 2015-01-14 21:37 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64520 Jason Merrill <jason at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED Target Milestone|4.8.5 |5.0 --- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> --- Fixed for GCC 5. ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2015-01-14 21:37 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2015-01-07 12:00 [Bug c++/64520] New: [4.8/4.9/5 Regression] ICE with std::initializer_list jakub at gcc dot gnu.org 2015-01-07 12:25 ` [Bug c++/64520] " jakub at gcc dot gnu.org 2015-01-07 15:54 ` ville.voutilainen at gmail dot com 2015-01-12 18:27 ` jason at gcc dot gnu.org 2015-01-13 12:41 ` rguenth at gcc dot gnu.org 2015-01-13 21:05 ` jason at gcc dot gnu.org 2015-01-14 21:37 ` 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).