https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120335
Bug ID: 120335
Summary: Defining a function return type allowed with
-pedantic-errors
Product: gcc
Version: 15.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: eczbek.void at gmail dot com
Target Milestone: ---
https://godbolt.org/z/5P9nre1rT
https://eel.is/c++draft/diff.iso#diff.dcl-7
https://eel.is/c++draft/dcl.fct#16
Clang is correct here
