]> gcc.gnu.org Git - gcc.git/commit
c++: conversion with trailing return type [PR101051]
authorJason Merrill <jason@redhat.com>
Thu, 7 Apr 2022 01:57:33 +0000 (21:57 -0400)
committerJason Merrill <jason@redhat.com>
Tue, 12 Apr 2022 20:11:44 +0000 (16:11 -0400)
commit25167a3d8cfc738deb4b2bfb74ad37fd8a0f1ca4
tree7d0881c2de91debe956e5787efa9583350a02d92
parent0b6d4ee830b01ee70cc5dc32722d73ac3ea4e0db
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.
gcc/cp/decl.c
gcc/testsuite/g++.dg/cpp0x/trailing15.C [new file with mode: 0644]
This page took 0.06259 seconds and 6 git commands to generate.