Fix MIPS16 ICE.

* pt.c (type_dependent_expression_p): Check DECL_LANG_SPECIFIC.

From-SVN: r258143
This commit is contained in:
Jason Merrill 2018-03-02 11:54:23 -05:00 committed by Jason Merrill
parent 70614cb903
commit e76feb5b69
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2018-03-02 Jason Merrill <jason@redhat.com>
Fix MIPS16 ICE.
* pt.c (type_dependent_expression_p): Check DECL_LANG_SPECIFIC.
2018-03-02 Marek Polacek <polacek@redhat.com>
PR c++/84590

View File

@ -24641,7 +24641,8 @@ type_dependent_expression_p (tree expression)
if (TREE_CODE (expression) == FUNCTION_DECL
&& !(DECL_CLASS_SCOPE_P (expression)
&& dependent_type_p (DECL_CONTEXT (expression)))
&& !(DECL_FRIEND_P (expression)
&& !(DECL_LANG_SPECIFIC (expression)
&& DECL_FRIEND_P (expression)
&& (!DECL_FRIEND_CONTEXT (expression)
|| dependent_type_p (DECL_FRIEND_CONTEXT (expression))))
&& !DECL_LOCAL_FUNCTION_P (expression))