This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/66405] [5/6 Regression] ICE: in tsubst, at cp/pt.c:11984
- From: "trippels at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 03 Jun 2015 13:57:44 +0000
- Subject: [Bug c++/66405] [5/6 Regression] ICE: in tsubst, at cp/pt.c:11984
- Auto-submitted: auto-generated
- References: <bug-66405-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66405
--- Comment #2 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Creduce came up with:
template <typename> struct A;
template <bool> struct enable_if;
template <typename T, T> struct B;
template <bool... Bools> using and_c = A<B<bool, Bools || true...>>;
template <typename...> using Constructible = int;
template <typename... Ts> struct common_tuple {
template <
typename... Us,
typename enable_if<and_c<(int)Constructible<Ts, Us>()...>::value>::type>
common_tuple();
void foo();
};
template <> void common_tuple<>::foo(){};