Created on 2014-02-12.00:00:00 last changed 126 months ago
Rationale (June, 2014):
CWG noted that the grammar change to allow disambiguation based on the parameter name being qualified is large, so the cost outweighs the relatively small benefit for disambiguating this particular corner case.
In an example like,
namespace N { enum E { X }; } struct S { S(N::E); }; S s(S(N::X));
the last line disambiguates as an (ill-formed) function declaration, because the restriction requiring unqualified parameter names is semantic, not syntactic. Should the language be changed to use the presence of a qualified-id in this case as disambiguation? There is implementation divergence in the handling of this example.
History | |||
---|---|---|---|
Date | User | Action | Args |
2014-07-07 00:00:00 | admin | set | messages: + msg5114 |
2014-07-07 00:00:00 | admin | set | status: open -> nad |
2014-02-12 00:00:00 | admin | create |