https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101051
--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by Jason Merrill <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:25167a3d8cfc738deb4b2bfb74ad37fd8a0f1ca4 commit r11-9823-g25167a3d8cfc738deb4b2bfb74ad37fd8a0f1ca4 Author: Jason Merrill <ja...@redhat.com> Date: Wed Apr 6 21:57:33 2022 -0400 c++: conversion with trailing return type [PR101051] We've had a diagnostic for this, but since r10-6571 added an assert to splice_late_return_type, we need to diagnose before we call it. PR c++/101051 gcc/cp/ChangeLog: * decl.c (grokdeclarator): Reject conversion with trailing return sooner. gcc/testsuite/ChangeLog: * g++.dg/cpp0x/trailing15.C: New test.