This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/50478] [C++0x] Internal compiler error when using initializer lists
- From: "paolo.carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 21 Dec 2011 12:20:43 +0000
- Subject: [Bug c++/50478] [C++0x] Internal compiler error when using initializer lists
- Auto-submitted: auto-generated
- References: <bug-50478-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50478
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |paolo.carlini at oracle dot
| |com
--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-12-21 12:20:43 UTC ---
This is enough:
namespace std
{
template<class _E>
class initializer_list;
template<typename _Key>
struct set
{
void insert(const _Key&);
};
struct string
{
string(const string&, __SIZE_TYPE__, __SIZE_TYPE__ = -1);
string(const char*);
string(initializer_list<char>);
};
}
int main()
{
std::set<std::string> s;
s.insert( { "abc", "def", "hij"} );
}