Bug 67270 - internal compiler error: in unify, at cp/pt.c:18178
Summary: internal compiler error: in unify, at cp/pt.c:18178
Status: RESOLVED WONTFIX
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 4.9.3
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-19 09:07 UTC by radventure
Modified: 2015-08-19 11:45 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description radventure 2015-08-19 09:07:14 UTC
Code listed  below  crashes compiler 
I compile it  with g++ -std=c++11 test.cpp

#include <initializer_list>

template <template<typename...> class C, typename... T> void g(const C<T...>& a)
{
}

int main()
{
    g<std::initializer_list, int>({1, 2, 3});
}
Comment 1 Marek Polacek 2015-08-19 09:19:53 UTC
This was fixed in r219557 and is fixed in 5/trunk.
Comment 2 radventure 2015-08-19 10:33:59 UTC
(In reply to Marek Polacek from comment #1)
> This was fixed in r219557 and is fixed in 5/trunk.

I know about absence of problem in 5.1.
Comment 3 Markus Trippelsdorf 2015-08-19 11:45:49 UTC
It is not a regression for 4.9.3, because it ICEed before.