Re: [PATCH] Do not fold anything during copy_fn (PR c++/90383)

2019-05-10 Thread Jakub Jelinek
On Fri, May 10, 2019 at 09:32:00AM +0200, Richard Biener wrote: > OK. Note in general canonicalization might be necessary if > we have any DECL_VALUE_EXPRs resolved. We only resolve DECL_VALUE_EXPRs in gimple_regimplify_operands I believe, during copy_fn we don't have any gimple statements plus

Re: [PATCH] Do not fold anything during copy_fn (PR c++/90383)

2019-05-10 Thread Richard Biener
On Fri, 10 May 2019, Jakub Jelinek wrote: > Hi! > > The following testcases are rejects-valid or wrong-code, because > when we make copies of the function for constexpr evaluation purposes (the > primary intent is have the functions as is, with no folding whatsoever, so > we diagnose

[PATCH] Do not fold anything during copy_fn (PR c++/90383)

2019-05-10 Thread Jakub Jelinek
Hi! The following testcases are rejects-valid or wrong-code, because when we make copies of the function for constexpr evaluation purposes (the primary intent is have the functions as is, with no folding whatsoever, so we diagnose everything), the inliner used under the hood to copy the function