This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51789] New: GCC does not consider SFINAE in template parameter list of template parameter pack
- From: "schaub.johannes at googlemail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 07 Jan 2012 23:02:21 +0000
- Subject: [Bug c++/51789] New: GCC does not consider SFINAE in template parameter list of template parameter pack
- Auto-submitted: auto-generated
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: unassigned@gcc.gnu.org
ReportedBy: schaub.johannes@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};