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

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).