'x(x) int x; { }' was not accepted
This commit is contained in:
		
							parent
							
								
									11d8919d76
								
							
						
					
					
						commit
						49fd9f9377
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -196,6 +196,11 @@ begin_proc(ds, idf)		/* to be called when entering a procedure */
 | 
			
		|||
	register char *name = idf->id_text;
 | 
			
		||||
	register struct def *def = idf->id_def;
 | 
			
		||||
 | 
			
		||||
	while (def->df_level > L_GLOBAL) def = def->next;
 | 
			
		||||
		/* idf->id_def does not indicate the right def structure
 | 
			
		||||
		   when the function being defined has a parameter of the
 | 
			
		||||
		   same name.
 | 
			
		||||
		*/
 | 
			
		||||
#ifndef PREPEND_SCOPES
 | 
			
		||||
	code_scope(name, def);
 | 
			
		||||
#endif	PREPEND_SCOPES
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue