This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix uninitialized variable in cp/parser.c
- From: Jan Hubicka <jh at suse dot cz>
- To: gcc-patches at gcc dot gnu dot org, dnovillo at redhat dot com
- Date: Fri, 21 Nov 2003 12:35:36 +0100
- Subject: Fix uninitialized variable in cp/parser.c
Hi,
this patch fix uninitialized variable noticed by tree-ssa compilation.
Commited as obvious to tree-ssa and mainline.
Honza
2003-11-21 Jan Hubicka <jh@suse.cz>
* parser.c (cp_parser_postfix_expression): Initialize 's' to
NULL_TREE.
Index: cp/parser.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/parser.c,v
retrieving revision 1.32.2.15
diff -c -3 -p -r1.32.2.15 parser.c
*** cp/parser.c 28 Oct 2003 14:58:04 -0000 1.32.2.15
--- cp/parser.c 21 Nov 2003 11:32:56 -0000
*************** cp_parser_postfix_expression (cp_parser
*** 3693,3699 ****
/* Otherwise, try the pseudo-destructor-name production. */
else
{
! tree s;
tree type;
/* Parse the pseudo-destructor-name. */
--- 3693,3699 ----
/* Otherwise, try the pseudo-destructor-name production. */
else
{
! tree s = NULL_TREE;
tree type;
/* Parse the pseudo-destructor-name. */