* decl.c (check_initializer): Fix thinko.

From-SVN: r109728
This commit is contained in:
Gabriel Dos Reis 2006-01-15 20:15:58 +00:00 committed by Gabriel Dos Reis
parent 6085dc49ba
commit 7525db0347
2 changed files with 5 additions and 1 deletions

View 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

View 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;