On 12/2/19 4:43 PM, Jakub Jelinek wrote:
On Mon, Dec 02, 2019 at 02:29:56PM -0500, Jason Merrill wrote:
On 11/27/19 6:38 PM, Jakub Jelinek wrote:
+ if (i == 0 && DECL_VIRTUAL_P (fun))
+ {
+ tree addr = arg;
+ STRIP_NOPS (addr);
+ if (TREE_CO
On Mon, Dec 02, 2019 at 02:29:56PM -0500, Jason Merrill wrote:
> On 11/27/19 6:38 PM, Jakub Jelinek wrote:
> > + if (i == 0 && DECL_VIRTUAL_P (fun))
> > + {
> > + tree addr = arg;
> > + STRIP_NOPS (addr);
> > + if (TREE_CODE (addr) == ADDR_EXPR)
> > + {
>
On 11/27/19 6:38 PM, Jakub Jelinek wrote:
Hi!
The OBJ_TYPE_REF constexpr handling looks through DECL_FIELD_IS_BASE
COMPONENT_REFs to find the actual object on which the method is called,
but as the following testcase shows, we need to do the similar thing also
for the argument passed as this, be
Hi!
The OBJ_TYPE_REF constexpr handling looks through DECL_FIELD_IS_BASE
COMPONENT_REFs to find the actual object on which the method is called,
but as the following testcase shows, we need to do the similar thing also
for the argument passed as this, because cxx_eval_indirect_ref otherwise
fails