Re: [C++ PATCH] Fix ICE with constexpr store to pointer to method (PR c++/79639)

2017-02-21 Thread Jason Merrill
OK. On Tue, Feb 21, 2017 at 8:44 AM, Jakub Jelinek wrote: > Hi! > > Apparently we can end up trying to store into a pointer-to-member > that has a PTRMEM_CST as its current value. Later code in > cxx_eval_store_expression is upset that it isn't a CONSTRUCTOR when > the type is actually aggregate

[C++ PATCH] Fix ICE with constexpr store to pointer to method (PR c++/79639)

2017-02-21 Thread Jakub Jelinek
Hi! Apparently we can end up trying to store into a pointer-to-member that has a PTRMEM_CST as its current value. Later code in cxx_eval_store_expression is upset that it isn't a CONSTRUCTOR when the type is actually aggregate. The following patch fixes that, bootstrapped/regtested on x86_64-lin