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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I don't see such a sentence in C++17 nor other C++ standards.
All compilers I've tried accept it.
On the other side, e.g. http://eel.is/c++draft/basic.fundamental#15 talks about
functions returning cv void.
Similarly http://eel.is/c++draft/stmt.return#2
And
https://eel.is/c++draft/dcl.fct#14 explicitly says
"The return type shall be a non-array object type, a reference type, or cv
void."
This is something that was earlier said in [expr.call]/3 (e.g. in C++17,
[expr.call]/5 in C++20).

Reply via email to