OSDN Git Service

2007-05-25 H.J. Lu <hongjiu.lu@intel.com>
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 25 May 2007 19:44:11 +0000 (19:44 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 25 May 2007 19:44:11 +0000 (19:44 +0000)
* semantics.c (finish_member_declaration): Fix a typo in the
last checkin.

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

gcc/cp/ChangeLog
gcc/cp/semantics.c

index f2c6b6a..32dee7f 100644 (file)
@@ -1,3 +1,8 @@
+2007-05-25  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * semantics.c (finish_member_declaration): Fix a typo in the
+       last checkin.
+
 2007-05-25  Douglas Gregor <doug.gregor@gmail.com>
 
        PR c++/31431
index 827f532..631f5e8 100644 (file)
@@ -2286,7 +2286,7 @@ finish_member_declaration (tree decl)
   /* Check for bare parameter packs in the member variable declaration.  */
   if (TREE_CODE (decl) == FIELD_DECL
       && !check_for_bare_parameter_packs (TREE_TYPE (decl)))
-    TREE_TYPE (decl) == error_mark_node;
+    TREE_TYPE (decl) = error_mark_node;
 
   /* [dcl.link]