Skip to content

Commit d7e7d45

Browse files
[expr.call] [dcl.fct] Move return type requiremens
1 parent 1c5f448 commit d7e7d45

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

source/declarations.tex

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3490,10 +3490,7 @@
34903490
\pnum
34913491
\indextext{function return type|see{return type}}%
34923492
\indextext{return type}%
3493-
Functions shall not have a return type of type array or function,
3494-
although they may have a return type of type pointer or reference to such things.
3495-
There shall be no arrays of functions, although there can be arrays of pointers
3496-
to functions.
3493+
The return type shall be an object type, a reference type or \cv{}~\tcode{void}.
34973494

34983495
\pnum
34993496
A volatile-qualified return type is deprecated;

source/expressions.tex

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2949,7 +2949,6 @@
29492949
statically chosen function (i.e., ignoring the \tcode{virtual} keyword),
29502950
even if the type of the function actually called is different.
29512951
\indextext{type!incomplete}%
2952-
This return type shall be an object type, a reference type or \cv{}~\tcode{void}.
29532952
If the \grammarterm{postfix-expression} names a pseudo-destructor
29542953
(in which case the \grammarterm{postfix-expression}
29552954
is a possibly-parenthesized class member access),

0 commit comments

Comments
 (0)