|
Boost : |
Subject: Re: [boost] [proto][variant] variant crashes proto expression
From: Seth (bugs_at_[hidden])
Date: 2016-05-12 19:41:29
On 12-05-16 21:10, Igor R wrote:
> The following code is a slightly modified Proto calc2 example. Instead
> of doubles I use variant<int, double>, and the expression is just _1 =
> _2.
> This code triggers assertion in variant/detail/forced_return.hpp, so
> it looks like some variant instance gets messed up. It happens when
> the value returned from proto::eval(*this, ctx) is being copied.
> It can be reproduced both with MSVC and gcc, with Boost 1.60.
>
> Is there any workaround for this issue?
>
>
I can only reproduce it with Clang. GCC 4.9+ is fine Are you using libc++?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk