https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116789
--- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> --- This was fixed by r14-8291. But those were all either accepts-invalid or rejects-invalid, not ICEs. So perhaps we should reduce this and add the test.