[Bug c++/69736] [4.9/5/6 Regression] "error: too few arguments to function" in c++14 but not c++11
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Feb 9 19:31:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69736
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
In some contexts yes, but 5.1.1 [expr.prim.general] p6 says:
A parenthesized expression is a primary expression whose type and value are
identical to those of the enclosed expression. The presence of parentheses
does not affect whether the expression is an lvalue. The parenthesized
expression can be used in exactly the same contexts as those where the
enclosed expression can be used, and with the same meaning, except as
otherwise indicated.
I don't see anything indicating otherwise in [conf.func] or [expr.call] or
[dcl.fct.default].
More information about the Gcc-bugs
mailing list