You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Full name of submitter (unless configured in github; will be published with the issue): Andrey Erokhin
Reference (section label): [expr.add]
Link to reflector thread (if any):
Issue description:
I've filed a Clang issue that it erroneously accepts
intmain()
{
using IA = int[];
IA{ 1, 2, 3 } + 0;
}
but was asked to promote this to a CWG issue.
Current wording doesn't allow array prvalues as the binary + operands, neither there is wording requiring the array-to-pointer/temporary materialization/whatever conversions on such an operand.
Personally, I think such meaningless code should not become well-formed, thus
Suggested resolution: NAD
The text was updated successfully, but these errors were encountered:
Full name of submitter (unless configured in github; will be published with the issue): Andrey Erokhin
Reference (section label): [expr.add]
Link to reflector thread (if any):
Issue description:
I've filed a Clang issue that it erroneously accepts
but was asked to promote this to a CWG issue.
Current wording doesn't allow array prvalues as the binary
+
operands, neither there is wording requiring the array-to-pointer/temporary materialization/whatever conversions on such an operand.Personally, I think such meaningless code should not become well-formed, thus
Suggested resolution: NAD
The text was updated successfully, but these errors were encountered: