From: Gabriel Dos Reis Date: Sun, 15 Jan 2006 20:15:58 +0000 (+0000) Subject: * decl.c (check_initializer): Fix thinko. X-Git-Tag: releases/gcc-4.2.0~4859 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7525db0347872de35f5c06c3743341056bcb8eca;p=thirdparty%2Fgcc.git * decl.c (check_initializer): Fix thinko. From-SVN: r109728 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 96cf0a954f20..f26f38441bb8 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 2f8533412fdb..d28481b94f0e 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;