fixed problem with extern declarations
This commit is contained in:
		
							parent
							
								
									e5b52ce56f
								
							
						
					
					
						commit
						e096bc3fb3
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -317,7 +317,7 @@ declare_idf(ds, dc, lvl)
 | 
			
		|||
			break;
 | 
			
		||||
		case L_FORMAL2:	/* formal definition */
 | 
			
		||||
		default:	/* local */
 | 
			
		||||
			error("%s redeclared", idf->id_text);
 | 
			
		||||
			if (sc != EXTERN) error("%s redeclared", idf->id_text);
 | 
			
		||||
			break;
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue