[Bug c++/56543] [4.7/4.8 Regression] ICE on valid code in copy_node_stat

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Mar 6 11:14:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56543

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-03-06 11:13:23 UTC ---
   The second is NULL if there are no explicit arguments, or a
   TREE_VEC of arguments.

Thus, perhaps:

-        if (TREE_CODE (fullname) == TEMPLATE_ID_EXPR)
+        if (TREE_CODE (fullname) == TEMPLATE_ID_EXPR
+            && TREE_OPERAND (fullname, 1))

?



More information about the Gcc-bugs mailing list