https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64194
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Jonathan Wakely from comment #4) > Slightly reduced (it doesn't matter if g has a deduced return type): Oops, it already wasn't deduced ... I confused myself with a new testcase I was trying!