This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/81134] C++ partial template specialization issue
- 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: Wed, 21 Jun 2017 12:01:53 +0000
- Subject: [Bug c++/81134] C++ partial template specialization issue
- Auto-submitted: auto-generated
- References: <bug-81134-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81134
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
To determine the type of the conditional expression it's necessary to know the
types of both GCD<N%M, M>::value and GCD<N, M%N>::value, which requires
instantiating both of GCD<N%M, M> and GCD<N, M%N>, which triggers the infinite
recursion.