[Bug c++/101051] [10/11 Regression] ICE in splice_late_return_type with trailing return type on a conversion operator, caused by r10-6571

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Apr 12 20:14:19 GMT 2022


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
<jason@gcc.gnu.org>:

https://gcc.gnu.org/g:25167a3d8cfc738deb4b2bfb74ad37fd8a0f1ca4

commit r11-9823-g25167a3d8cfc738deb4b2bfb74ad37fd8a0f1ca4
Author: Jason Merrill <jason@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.


More information about the Gcc-bugs mailing list