[Bug c++/65127] [5 Regression] internal compiler error: tree check: expected tree that contains 'decl minimal' structure, have 'addr_expr' in parsing_nsdmi, at cp/parser.c:18311
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Mar 10 16:47:00 GMT 2015
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.
More information about the Gcc-bugs
mailing list