diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 96cf0a954f2..f26f38441bb 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2006-01-15 Gabriel Dos Reis + + * decl.c (check_initializer): Fix thinko. + 2006-01-14 Mark Mitchell PR c++/25663 diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 2f8533412fd..d28481b94f0 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -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;