Re: [PATCH] c++: Fix ICE during constexpr virtual call evaluation [PR93633]

2020-02-09 Thread Jason Merrill
On 2/9/20 2:27 AM, Jakub Jelinek wrote: Hi! The first (valid) testcase ICEs because for A *a = new B (); a->foo (); // virtual method call we actually see &heap and the "heap " objects don't have the class or whatever else type was used in new expression, but an array type containing one

[PATCH] c++: Fix ICE during constexpr virtual call evaluation [PR93633]

2020-02-08 Thread Jakub Jelinek
Hi! The first (valid) testcase ICEs because for A *a = new B (); a->foo (); // virtual method call we actually see &heap and the "heap " objects don't have the class or whatever else type was used in new expression, but an array type containing one (or more of those for array new) and so when