public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug libstdc++/38684] New: [c++0x] ICE using initializer_list ctor in derived class @ 2008-12-31 20:45 cfairles at gcc dot gnu dot org 2008-12-31 20:56 ` [Bug c++/38684] " pinskia at gcc dot gnu dot org ` (5 more replies) 0 siblings, 6 replies; 7+ messages in thread From: cfairles at gcc dot gnu dot org @ 2008-12-31 20:45 UTC (permalink / raw) To: gcc-bugs #include <initializer_list> struct Y {}; template<class T> struct X : Y { X(std::initializer_list<T>) {} }; struct A { X<int> v; }; int main() { A a{ {1,2,3} }; } Compiling with -std=c++0x gives: internal compiler error: in process_init_constructor_record, at cp/typeck2.c:987 This compiles w/o ice or error if X does not derive from Y. -- Summary: [c++0x] ICE using initializer_list ctor in derived class Product: gcc Version: 4.4.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: libstdc++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: cfairles at gcc dot gnu dot org GCC build triplet: x86_64-redhat-linux GCC host triplet: x86_64-redhat-linux GCC target triplet: x86_64-redhat-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38684 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/38684] [c++0x] ICE using initializer_list ctor in derived class 2008-12-31 20:45 [Bug libstdc++/38684] New: [c++0x] ICE using initializer_list ctor in derived class cfairles at gcc dot gnu dot org @ 2008-12-31 20:56 ` pinskia at gcc dot gnu dot org 2008-12-31 22:01 ` paolo dot carlini at oracle dot com ` (4 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: pinskia at gcc dot gnu dot org @ 2008-12-31 20:56 UTC (permalink / raw) To: gcc-bugs ------- Comment #1 from pinskia at gcc dot gnu dot org 2008-12-31 20:54 ------- Confirmed. 986 gcc_assert (!TYPE_BINFO (type) 987 || !BINFO_N_BASE_BINFOS (TYPE_BINFO (type))); The assert looks wrong for C++0x code. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2008-12-31 20:54:36 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38684 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/38684] [c++0x] ICE using initializer_list ctor in derived class 2008-12-31 20:45 [Bug libstdc++/38684] New: [c++0x] ICE using initializer_list ctor in derived class cfairles at gcc dot gnu dot org 2008-12-31 20:56 ` [Bug c++/38684] " pinskia at gcc dot gnu dot org @ 2008-12-31 22:01 ` paolo dot carlini at oracle dot com 2009-01-01 2:30 ` cfairles at gcc dot gnu dot org ` (3 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: paolo dot carlini at oracle dot com @ 2008-12-31 22:01 UTC (permalink / raw) To: gcc-bugs ------- Comment #2 from paolo dot carlini at oracle dot com 2008-12-31 21:58 ------- Let's CC Jason for this one too... -- paolo dot carlini at oracle dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jason at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38684 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/38684] [c++0x] ICE using initializer_list ctor in derived class 2008-12-31 20:45 [Bug libstdc++/38684] New: [c++0x] ICE using initializer_list ctor in derived class cfairles at gcc dot gnu dot org 2008-12-31 20:56 ` [Bug c++/38684] " pinskia at gcc dot gnu dot org 2008-12-31 22:01 ` paolo dot carlini at oracle dot com @ 2009-01-01 2:30 ` cfairles at gcc dot gnu dot org 2009-01-02 6:03 ` jason at gcc dot gnu dot org ` (2 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: cfairles at gcc dot gnu dot org @ 2009-01-01 2:30 UTC (permalink / raw) To: gcc-bugs ------- Comment #3 from cfairles at gcc dot gnu dot org 2009-01-01 02:28 ------- Templates aren't required, slightly reduced testcase: #include <initializer_list> struct Y {}; struct X : Y { X(std::initializer_list<int>) {} }; struct A { X v; }; int main() { A a{ {1,2,3} }; } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38684 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/38684] [c++0x] ICE using initializer_list ctor in derived class 2008-12-31 20:45 [Bug libstdc++/38684] New: [c++0x] ICE using initializer_list ctor in derived class cfairles at gcc dot gnu dot org ` (2 preceding siblings ...) 2009-01-01 2:30 ` cfairles at gcc dot gnu dot org @ 2009-01-02 6:03 ` jason at gcc dot gnu dot org 2009-01-03 0:22 ` jason at gcc dot gnu dot org 2009-01-03 3:52 ` jason at gcc dot gnu dot org 5 siblings, 0 replies; 7+ messages in thread From: jason at gcc dot gnu dot org @ 2009-01-02 6:03 UTC (permalink / raw) To: gcc-bugs -- jason at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |jason at gcc dot gnu dot org |dot org | Status|NEW |ASSIGNED Last reconfirmed|2008-12-31 20:54:36 |2009-01-02 06:01:14 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38684 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/38684] [c++0x] ICE using initializer_list ctor in derived class 2008-12-31 20:45 [Bug libstdc++/38684] New: [c++0x] ICE using initializer_list ctor in derived class cfairles at gcc dot gnu dot org ` (3 preceding siblings ...) 2009-01-02 6:03 ` jason at gcc dot gnu dot org @ 2009-01-03 0:22 ` jason at gcc dot gnu dot org 2009-01-03 3:52 ` jason at gcc dot gnu dot org 5 siblings, 0 replies; 7+ messages in thread From: jason at gcc dot gnu dot org @ 2009-01-03 0:22 UTC (permalink / raw) To: gcc-bugs ------- Comment #4 from jason at gcc dot gnu dot org 2009-01-03 00:21 ------- Subject: Bug 38684 Author: jason Date: Sat Jan 3 00:19:55 2009 New Revision: 143024 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143024 Log: PR c++/38698 * typeck2.c (process_init_constructor_union): Handle excess initializers. (process_init_constructor_record): Likewise. PR c++/38684 * typeck2.c (digest_init_r): Don't use process_init_constructor for non-aggregate classes. Added: trunk/gcc/testsuite/g++.dg/cpp0x/initlist11.C trunk/gcc/testsuite/g++.dg/cpp0x/initlist12.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/typeck2.c trunk/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38684 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/38684] [c++0x] ICE using initializer_list ctor in derived class 2008-12-31 20:45 [Bug libstdc++/38684] New: [c++0x] ICE using initializer_list ctor in derived class cfairles at gcc dot gnu dot org ` (4 preceding siblings ...) 2009-01-03 0:22 ` jason at gcc dot gnu dot org @ 2009-01-03 3:52 ` jason at gcc dot gnu dot org 5 siblings, 0 replies; 7+ messages in thread From: jason at gcc dot gnu dot org @ 2009-01-03 3:52 UTC (permalink / raw) To: gcc-bugs ------- Comment #5 from jason at gcc dot gnu dot org 2009-01-03 03:48 ------- Fixed. -- jason at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38684 ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-01-03 3:52 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2008-12-31 20:45 [Bug libstdc++/38684] New: [c++0x] ICE using initializer_list ctor in derived class cfairles at gcc dot gnu dot org 2008-12-31 20:56 ` [Bug c++/38684] " pinskia at gcc dot gnu dot org 2008-12-31 22:01 ` paolo dot carlini at oracle dot com 2009-01-01 2:30 ` cfairles at gcc dot gnu dot org 2009-01-02 6:03 ` jason at gcc dot gnu dot org 2009-01-03 0:22 ` jason at gcc dot gnu dot org 2009-01-03 3:52 ` jason at gcc dot gnu dot 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).