]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
pt.c (tsubst_decl): Use void_zero_node instead of error_mark_node as a placeholder.
authorJason Merrill <jason@redhat.com>
Fri, 14 Oct 2011 19:12:33 +0000 (15:12 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 14 Oct 2011 19:12:33 +0000 (15:12 -0400)
* pt.c (tsubst_decl) [FIELD_DECL]: Use void_zero_node
instead of error_mark_node as a placeholder.

From-SVN: r180001

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

index aac66d540b418f61a3a073544b0293620bc56206..0edf96641f672c7777b6271e358ac3a13a6dd9df 100644 (file)
@@ -1,3 +1,8 @@
+2011-10-14  Jason Merrill  <jason@redhat.com>
+
+       * pt.c (tsubst_decl) [FIELD_DECL]: Use void_zero_node
+       instead of error_mark_node as a placeholder.
+
 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
 
        PR c++/38174
index 1632c01ebce34edea9db74b20ce1e25216f3fbaa..bbe113980e09ec1146229fdbb5c516e893c02761 100644 (file)
@@ -10273,8 +10273,8 @@ tsubst_decl (tree t, tree args, tsubst_flags_t complain)
          {
            /* Set up DECL_TEMPLATE_INFO so that we can get at the
               NSDMI in perform_member_init.  Still set DECL_INITIAL
-              to error_mark_node so that we know there is one.  */
-           DECL_INITIAL (r) = error_mark_node;
+              so that we know there is one.  */
+           DECL_INITIAL (r) = void_zero_node;
            gcc_assert (DECL_LANG_SPECIFIC (r) == NULL);
            retrofit_lang_decl (r);
            DECL_TEMPLATE_INFO (r) = build_template_info (t, args);