public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/51789] New: GCC does not consider SFINAE in template parameter list of template parameter pack
@ 2012-01-07 23:02 schaub.johannes at googlemail dot com
0 siblings, 0 replies; only message in thread
From: schaub.johannes at googlemail dot com @ 2012-01-07 23:02 UTC (permalink / raw)
To: gcc-bugs
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};
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-01-07 23:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-07 23:02 [Bug c++/51789] New: GCC does not consider SFINAE in template parameter list of template parameter pack schaub.johannes at googlemail dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).