https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94937

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #16 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I remember dealing with this elsewhere (in declare variant support).
I had to do:
-  variant = cp_get_callee_fndecl_nofold (variant);                             
+  variant = cp_get_callee (variant);                                           
+  if (variant)                                                                 
+    {                                                                          
+      if (TREE_CODE (variant) == FUNCTION_DECL)                                
+       ;                                                                       
+      else if (TREE_TYPE (variant) && INDIRECT_TYPE_P (TREE_TYPE (variant)))   
+       variant = cp_get_fndecl_from_callee (variant, false);                   
+      else                                                                     
+       variant = NULL_TREE;                                                    
+    }                                                                          
because cp_get_callee_fndecl_nofold would ICE (I think exactly like this one))
when feeded during processing_template_decl with something it doesn't expect to
see.

Reply via email to