mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-10-31 10:11:27 +01:00 
			
		
		
		
	* fix expectlocs for method pointers
git-svn-id: trunk@22342 -
This commit is contained in:
		
							parent
							
								
									370d42035a
								
							
						
					
					
						commit
						e18a9cccaa
					
				| @ -3137,18 +3137,14 @@ implementation | |||||||
|          if tabstractprocdef(resultdef).is_addressonly then |          if tabstractprocdef(resultdef).is_addressonly then | ||||||
|            expectloc:=LOC_REGISTER |            expectloc:=LOC_REGISTER | ||||||
|          else |          else | ||||||
|            begin |  | ||||||
|              if not(left.expectloc in [LOC_CREFERENCE,LOC_REFERENCE]) then |  | ||||||
|                CGMessage(parser_e_illegal_expression); |  | ||||||
|            expectloc:=left.expectloc; |            expectloc:=left.expectloc; | ||||||
|       end; |       end; | ||||||
|       end; |  | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|     function ttypeconvnode.first_nil_to_methodprocvar : tnode; |     function ttypeconvnode.first_nil_to_methodprocvar : tnode; | ||||||
|       begin |       begin | ||||||
|         first_nil_to_methodprocvar:=nil; |         first_nil_to_methodprocvar:=nil; | ||||||
|         expectloc:=LOC_REFERENCE; |         expectloc:=LOC_REGISTER; | ||||||
|       end; |       end; | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -438,7 +438,7 @@ implementation | |||||||
|                    { method pointer or nested proc ? } |                    { method pointer or nested proc ? } | ||||||
|                    if assigned(left) then |                    if assigned(left) then | ||||||
|                      begin |                      begin | ||||||
|                         expectloc:=LOC_CREFERENCE; |                         expectloc:=LOC_CREGISTER; | ||||||
|                         firstpass(left); |                         firstpass(left); | ||||||
|                      end; |                      end; | ||||||
|                 end; |                 end; | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 florian
						florian