replica nfl jerseysreplica nfl jerseyssoccer jerseyreplica nfl jerseys forums.silverfrost.com :: View topic - Operand incompatible... problem with pointers in checkmate
forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Operand incompatible... problem with pointers in checkmate

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
acw



Joined: 04 Nov 2005
Posts: 165
Location: Darkest Devon

PostPosted: Mon Jun 30, 2008 3:28 pm    Post subject: Operand incompatible... problem with pointers in checkmate Reply with quote

In version 5.21 (and earlier) the following code compiles and runs okay in release and debug builds, but attempting a checkmate compile generates an "operand incompatible with opcode" error at the top of the program. The problem is cause by the use of a pointer to an integer*1 or *2 in the ibset function. It's also a problem if the first parameter is a member of an ADT that is referenced via a pointer. Workaround is to use an intermediate variable or simply wrap ibset in another function with an explicit integer*1 parameter.

program ibtest
integer*1, target:: i1
integer*1, pointer:: i1p

i1 = 0
i1p => i1
i1p = ibset(i1p, 1) ! incompatible operand compile error in checkmate

print *, i1
end program
Back to top
View user's profile Send private message Visit poster's website
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 8210
Location: Salford, UK

PostPosted: Tue Jul 01, 2008 10:12 am    Post subject: Reply with quote

Thank you for the bug report.
We will investigate this as soon as we can.
Back to top
View user's profile Send private message AIM Address
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 8210
Location: Salford, UK

PostPosted: Fri Jul 18, 2008 4:05 pm    Post subject: Reply with quote

This bug has now been fixed for the next release.
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group