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
[expr.unary.op] p3 does not properly handle a case like this:
enum E { e };
int x = &E::e, 0;
&E::e is a qualified-id, so the "shall" conditions are satisfied, yet &E::e is obviously nonsense.
Suggestion: Drop the initial "shall" sentence, make the regular pointer case dependent on getting an lvalue, and add a trailing "Otherwise, the program is ill-formed."
The text was updated successfully, but these errors were encountered:
[expr.unary.op] p3 does not properly handle a case like this:
&E::e is a qualified-id, so the "shall" conditions are satisfied, yet &E::e is obviously nonsense.
Suggestion: Drop the initial "shall" sentence, make the regular pointer case dependent on getting an lvalue, and add a trailing "Otherwise, the program is ill-formed."
The text was updated successfully, but these errors were encountered: