http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51789
Bug #: 51789 Summary: GCC does not consider SFINAE in template parameter list of template parameter pack Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: schaub.johan...@googlemail.com This code should not be accepted, but GCC accepts it struct A { template< typename ...T, template<typename std::enable_if< std::is_same<T, int>::value, int >::type ... > class... > A(T...); }; A a = {1, 2.0, 3};