hange bot_manip to not call this
function, I think this function should reject void init.
I see, thanks. How does the following look for trunk? Bootstrapped and
regetested on x86_64-pc-linux-gnu.
-- >8 --
Subject: [PATCH] c++: constexpr and copy elision within mem init [PR100368]
In th
onstructor call. A void initializer
> > - means we're being called from bot_manip.
>
> In general, a void initializer for a TARGET_EXPR means that the initialization
> is more complex than initializing the object from the value of the expression.
> The caller would need
On 5/24/21 1:48 PM, Patrick Palka wrote:
In the testcase below, the initializer for C::b inside C's default
constructor is encoded as a TARGET_EXPR wrapping the CALL_EXPR f() in
C++17 mode. During massaging of this constexpr constructor,
build_target_expr_with_type called from bot_manip ends up
In the testcase below, the initializer for C::b inside C's default
constructor is encoded as a TARGET_EXPR wrapping the CALL_EXPR f() in
C++17 mode. During massaging of this constexpr constructor,
build_target_expr_with_type called from bot_manip ends up trying to use
B's implicitly deleted copy c