This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/69005] [5/6 Regression] infinite(?) recursion in template instantiations
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 24 Dec 2015 10:05:02 +0000
- Subject: [Bug c++/69005] [5/6 Regression] infinite(?) recursion in template instantiations
- Auto-submitted: auto-generated
- References: <bug-69005-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69005
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Hmm, __and_ is supposed to shortcut, but the way I use it here doesn't take
advantage of that because _Invoke is always instantiated even when _NotSelf is
false.
Replacing is_same<_Invoke<...>, ...> with something that only evaluates the
decltype expression as needed should work.