(In reply to Martin Li������ka from comment #3) > (In reply to Richard Biener from comment #1) > > It works with GCC 8.1, it's probably due to C++17 being still experimental > > in GCC 7. Nevertheless I have reduced it to the following - Martin, can you > > bisect a fix? > > Fixed with https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=cffc4a68d759fdca. Thanks, it cherry-picks fine. It fixes an unrelated bug though but I verified it also fixes the unreduced testcase. I'm doing a regstrap and will queue it for the next update of GCC 7 (those do not happen very often though). The fix will be available from devel:gcc though.