Re: [C++] compiler incompatibility with lambdas

2019-03-26 Thread Nathan Sidwell
On 3/26/19 10:45 AM, Rainer Orth wrote: Hi Nathan, This patch addresses a compiler incompatibility with non-capturing lambdas. Specifically, when a lambda's functions are comdat, we place the static _FUN function in the same comdat group as the operator() function. the new test FAILs on

Re: [C++] compiler incompatibility with lambdas

2019-03-26 Thread Rainer Orth
Hi Nathan, > This patch addresses a compiler incompatibility with non-capturing lambdas. > Specifically, when a lambda's functions are comdat, we place the static > _FUN function in the same comdat group as the operator() function. > > This breaks link compatibility with clang, where the static

[C++] compiler incompatibility with lambdas

2019-03-20 Thread Nathan Sidwell
This patch addresses a compiler incompatibility with non-capturing lambdas. Specifically, when a lambda's functions are comdat, we place the static _FUN function in the same comdat group as the operator() function. This breaks link compatibility with clang, where the static function is