https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101051

--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:f44a5c700f409b96ba923864158349700628133d

commit r12-8037-gf44a5c700f409b96ba923864158349700628133d
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.cc (grokdeclarator): Reject conversion with trailing return
            sooner.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp0x/trailing15.C: New test.

Reply via email to