https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128243
--- Comment #3 from Andrei Poshtarenko <aposhtarenko at proton dot me> --- (In reply to Jonathan Wakely from comment #2) > (In reply to Andrei Poshtarenko from comment #0) > > gcc 7.5 can compile that code, but 8.1 can't. > > Are you sure about that? It compiles with 9.5 for me, but not 10.1 No, sorry. I got those versions while testing the code with explicit instantiation, but it turns out that the error produced by GCC 8.1 when compiling the code with explicit instantiation is different from the one described in the bug report. So you're right.
