[llvm-bugs] [Bug 42213] Invalid template parameter
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Jun 9 21:24:32 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=42213
Richard Smith <richard-llvm at metafoo.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|NEW |RESOLVED
--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
Clang's behavior is correct.
GCC misparsed the second parameter and somehow believes A was given only one
template argument.
MSVC and EDG/ICC are complaining that a prior function parameter was used in a
later parameter, but that can be valid (depending on the type T and what
overload resolution for operator== finds), so that error should not occur until
substitution when it should be suppressed by SFINAE.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190610/b695ba3a/attachment.html>
More information about the llvm-bugs
mailing list