re PR middle-end/37500 (libstdc++ failed to compile at -O0)
authorJan Hubicka <jh@suse.cz>
Sat, 13 Sep 2008 07:30:15 +0000 (09:30 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sat, 13 Sep 2008 07:30:15 +0000 (07:30 +0000)
PR middle-end/37500
* pt.c (tsubst_decl): Do not copy DECL_STRUCT_FUNCTION pointer.

From-SVN: r140334

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

index cc70e9e..f455a32 100644 (file)
@@ -1,3 +1,8 @@
+2008-09-09  Jan Hubicka  <jh@suse.cz>
+
+       PR middle-end/37500
+       * pt.c (tsubst_decl): Do not copy DECL_STRUCT_FUNCTION pointer.
+
 2008-09-09  Jakub Jelinek  <jakub@redhat.com>
 
        PR c++/37417
index cdaae59..67b6dc6 100644 (file)
@@ -8179,6 +8179,7 @@ tsubst_decl (tree t, tree args, tsubst_flags_t complain)
        DECL_PENDING_INLINE_INFO (r) = 0;
        DECL_PENDING_INLINE_P (r) = 0;
        DECL_SAVED_TREE (r) = NULL_TREE;
+       DECL_STRUCT_FUNCTION (r) = NULL;
        TREE_USED (r) = 0;
        if (DECL_CLONED_FUNCTION (r))
          {