https://bugs.llvm.org/show_bug.cgi?id=39911

hst...@ca.ibm.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #3 from hst...@ca.ibm.com ---
> The code works as expected with gcc and msvc, so I guess it's a clang problem.
ICC and MSVC behave the same as Clang here:
ICC: https://godbolt.org/z/nncyHU
MSVC: https://godbolt.org/z/U7k7zj

GCC behaves the same if the lambda parameter is declared as `auto &` to better
match the function-to-pointer parameter types:
https://godbolt.org/z/WQ5mvq

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to