Fix MIPS16 ICE.
authorJason Merrill <jason@redhat.com>
Fri, 2 Mar 2018 16:54:23 +0000 (11:54 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 2 Mar 2018 16:54:23 +0000 (11:54 -0500)
* pt.c (type_dependent_expression_p): Check DECL_LANG_SPECIFIC.

From-SVN: r258143

gcc/cp/ChangeLog
gcc/cp/pt.c

index c74d3bc3e7a8ac798bad99317e424762bf55d34c..9986b88489a138144e2ccfb477ecf3bfe43a4faf 100644 (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
index e07d77bb87ed9100549130a268a52f6b85f78811..f67080fc2793d251a8bc0d07ac334ab5fdb771f5 100644 (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))