[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
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Feb 20 13:55:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65127
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org,
| |jason at gcc dot gnu.org
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
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.
More information about the Gcc-bugs
mailing list