This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.  */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]