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
structA {
// OK, constructor
(A)(int);
// Error, not a constructor due to enclosing parens.
(A(float));
};
// OK, constructor
(A::A(int)) {}
// Error, not a constructor due to enclosing parens.
(A::A(float)) {}
But Clang accepts anyway, as do all other major compilers. We should reject under -pedantic-errors, but given the widespread support it probably makes sense to continue to accept this by default.