]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* decl.c (check_initializer): Fix thinko.
authorGabriel Dos Reis <gdr@integrable-solutions.net>
Sun, 15 Jan 2006 20:15:58 +0000 (20:15 +0000)
committerGabriel Dos Reis <gdr@gcc.gnu.org>
Sun, 15 Jan 2006 20:15:58 +0000 (20:15 +0000)
From-SVN: r109728

gcc/cp/ChangeLog
gcc/cp/decl.c

index 96cf0a954f20c91119ba8a64869b6fe14b0dad78..f26f38441bb81fd17b1a0a4c64b36ccce684c67b 100644 (file)
@@ -1,3 +1,7 @@
+2006-01-15  Gabriel Dos Reis  <gdr@integrable-solutions.net>
+
+       * decl.c (check_initializer): Fix thinko.
+
 2006-01-14  Mark Mitchell  <mark@codesourcery.com>
 
        PR c++/25663
index 2f8533412fdb38244bd5cb35ea773d9758c07225..d28481b94f0ebfde631465020e936ced80a0b96f 100644 (file)
@@ -4578,7 +4578,7 @@ check_initializer (tree decl, tree init, int flags, tree *cleanup)
 
   if (TREE_CODE (decl) == CONST_DECL)
     {
-      gcc_assert (TREE_CODE (decl) != REFERENCE_TYPE);
+      gcc_assert (TREE_CODE (type) != REFERENCE_TYPE);
 
       DECL_INITIAL (decl) = init;