This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/69005] [5/6 Regression] infinite(?) recursion in template instantiations


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]