https://bugs.llvm.org/show_bug.cgi?id=47316
Richard Smith <richard-l...@metafoo.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|NEW |RESOLVED
--- Comment #2 from Richard Smith <richard-l...@metafoo.co.uk> ---
Yes, weird though this might be, the standard rules say that this disambiguates
as a function declaration whose parameter is named a::d (with redundant
parentheses around the parameter name), just like:
a::e f(a::e a::d);
... which is invalid because the name of the parameter can't be qualified, but
that's a semantic restriction that's not taken into account by disambiguation.
MSVC and EDG agree that this testcase is invalid for the same reason Clang
diagnoses it, so it looks like it's only GCC that uses the presence of the
qualifier for disambiguation.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs