Boost logo

Boost :

From: navya deepika garakapati (navyadeepika.9_at_[hidden])
Date: 2019-07-19 10:28:47


Hi John,
we tried with below compilers and version where it is failing
 g++ 8.1 and above. in clang++ 3.8.1 and 8.

while it is passing on g++ 5.4.

Thanks

On Fri, Jul 19, 2019 at 3:51 PM Fletcher, John P via Boost <
boost_at_[hidden]> wrote:

>
> ________________________________________
> From: Boost [boost-bounces_at_[hidden]] on behalf of navya deepika
> garakapati via Boost [boost_at_[hidden]]
> >Sent: 19 July 2019 10:49
> >To: boost_at_[hidden]
> >Cc: navya deepika garakapati
> >Subject: [boost] Lambda testcase fails when optimization enabled in gcc
> and llvm
>
> >Hi Devs,
> >consider below reduced testcase from boost lamda.
>
>
>
> >The above testcases is demonstrated with g++ compiler but behavior is same
> >on clang as well.
> >so we thought that this may be boost testcase issue.
> >When we replace ,
> > int d= (apply1<int>(_1 ,one) == 1);
> > with
> > int d= (apply1<int&>(_1 ,one) == 1);
>
> >testcase gives correct result with or without optimization.
>
> >Wanted to confirm here,is it valid testcase or we have to modify testcase
> >as per above?
>
> >Thanks,
> >Navya
>
> Navya
>
> It would be helpful to know what versions of g++ and clang you are using,
> and also what version of C++.
>
> Boost lambda is old code which was written for C++03 so the example may
> run fine on older C++ compilers.
>
> I hope this helps.
>
> John
>
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk