Fix: parameter name same as function name not dealt with properly
This commit is contained in:
		
							parent
							
								
									55dbc99000
								
							
						
					
					
						commit
						910316cfde
					
				
					 1 changed files with 8 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -528,9 +528,15 @@ declare_formals(idf, fp)
 | 
			
		|||
	/* When one of the formals has the same name as the function, 
 | 
			
		||||
	   it hides the function def. Get it.
 | 
			
		||||
	*/
 | 
			
		||||
	if (se && se->se_idf == idf) {
 | 
			
		||||
		df = df->next;
 | 
			
		||||
	while (se) {
 | 
			
		||||
		if (se->se_idf == idf) {
 | 
			
		||||
			df = df->next;
 | 
			
		||||
			break;
 | 
			
		||||
		}
 | 
			
		||||
		se = se->next;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	se = stack_level_of(L_FORMAL1)->sl_entry;
 | 
			
		||||
	
 | 
			
		||||
	hasproto = df->df_type->tp_proto != 0;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue