mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-11-04 11:24:16 +01:00 
			
		
		
		
	Check whether the globalsymtable is not Nil before using it! Otherwise an access violation occurs when compiling a program that contains specializations.
git-svn-id: trunk@19819 -
This commit is contained in:
		
							parent
							
								
									fca525a85b
								
							
						
					
					
						commit
						52a6699d55
					
				@ -319,7 +319,7 @@ uses
 | 
			
		||||
            else
 | 
			
		||||
              { the generic could have been specialized in the globalsymtable
 | 
			
		||||
                already, so search there as well }
 | 
			
		||||
              if specializest<>current_module.globalsymtable then
 | 
			
		||||
              if (specializest<>current_module.globalsymtable) and assigned(current_module.globalsymtable) then
 | 
			
		||||
                begin
 | 
			
		||||
                  srsym:=tsym(current_module.globalsymtable.findwithhash(hashedid));
 | 
			
		||||
                  if assigned(srsym) then
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user