From: Paolo Carlini Date: Wed, 10 Oct 2012 09:12:19 +0000 (+0000) Subject: re PR c++/50478 ([C++0x] Internal compiler error when using initializer lists) X-Git-Tag: misc/gccgo-go1_1_2~281 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8cfe707999d39c02a04cd4249e26aa28dfb6b81;p=thirdparty%2Fgcc.git re PR c++/50478 ([C++0x] Internal compiler error when using initializer lists) 2012-10-10 Paolo Carlini PR c++/50478 * g++.dg/cpp0x/initlist67.C: New. From-SVN: r192295 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a5a27a87fd31..f72f59743914 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2012-10-10 Paolo Carlini + + PR c++/50478 + * g++.dg/cpp0x/initlist67.C: New. + 2012-10-10 Dehao Chen * g++.dg/debug/dwarf2/deallocator.C: Cover more deallocator cases. diff --git a/gcc/testsuite/g++.dg/cpp0x/initlist67.C b/gcc/testsuite/g++.dg/cpp0x/initlist67.C new file mode 100644 index 000000000000..491d4cf06369 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/initlist67.C @@ -0,0 +1,27 @@ +// PR c++/50478 +// { dg-do compile { target c++11 } } + +#include + +namespace std +{ + template + struct set + { + void insert(const _Key&); + void insert(initializer_list<_Key>); + }; + + struct string + { + string(const string&, __SIZE_TYPE__, __SIZE_TYPE__ = -1); + string(const char*); + string(initializer_list); + }; +} + +int main() +{ + std::set s; + s.insert( { "abc", "def", "hij"} ); +}