[Bug c++/101051] [10/11/12 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
Thu Apr 7 03:27:00 GMT 2022
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 <jason@gcc.gnu.org>:
https://gcc.gnu.org/g:f44a5c700f409b96ba923864158349700628133d
commit r12-8037-gf44a5c700f409b96ba923864158349700628133d
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.cc (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