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

Jonathan Wakely <zi...@kayari.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|NEW                         |RESOLVED
                 CC|                            |zi...@kayari.org

--- Comment #6 from Jonathan Wakely <zi...@kayari.org> ---
I think I've figured out what's happening here.

The coliru clang++ defaults to using libstdc++ from GCC 6.x, which internally
used reference_wrapper to pass arguments by reference. That was changed for the
libstdc++ in GCC 7, when I switched to using std::invoke in std::packaged_task.
Using current libstdc++ sources you get the expected behaviour (when compiling
with either Clang or GCC).

So there is no Clang bug, and no libc++ bug (because libc++ isn't even being
used here), just an old libstdc++ bug which was fixed more than two years ago.

Amir, you should probably not report bugs based solely on coliru results, when
you don't know which compiler versions or standard library implementations are
being used. Coluri's clang++ appears to be 5.0.0 so I have no idea where you
got 3.8 from.

-- 
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

Reply via email to