]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix MIPS16 ICE.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 2 Mar 2018 16:54:23 +0000 (16:54 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 2 Mar 2018 16:54:23 +0000 (16:54 +0000)
* pt.c (type_dependent_expression_p): Check DECL_LANG_SPECIFIC.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@258143 138bc75d-0d04-0410-961f-82ee72b054a4

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))