https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65127
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #3) > So it seems current_class_ptr is no longer just NULL or a PARM_DECL, but can > be also ADDR_EXPR of a PLACEHOLDER_EXPR. Dunno if the right fix is > just > bool > parsing_nsdmi (void) > { > /* We recognize NSDMI context by the context-less 'this' pointer set up > by the function above. */ > - if (current_class_ptr && DECL_CONTEXT (current_class_ptr) == NULL_TREE) > + if (current_class_ptr > + && TREE_CODE (current_class_ptr) == PARM_DECL > + && DECL_CONTEXT (current_class_ptr) == NULL_TREE) > return true; > return false; > } > or something different. This change is OK.