Possible Bug with compiling for pointers

General discussion on mikroBasic PRO for AVR.
Post Reply
Author
Message
stevech
Posts: 38
Joined: 20 Aug 2007 16:47

Possible Bug with compiling for pointers

#1 Post by stevech » 15 Oct 2010 04:42

Using current evaluation version, this code, in a module file, causes the compiler (not the IDE) to get hung in a loop. Have to task-kill. Is my code at fault? (I have removed all irrelevant code in the below):

Code: Select all

SUB PROCEDURE foo()

END SUB

SUB function getAtomic16bits(DIM p as ^WORD) as WORD
    dim n as WORD
    
    n = p^
    foo() ' compiler hangs in a loop with this BUT only if the preceding line of code is compiled
    getAtomic16bits = n
END SUB

User avatar
tihomir.losic
mikroElektronika team
Posts: 2138
Joined: 02 Dec 2009 14:16
Location: Serbia
Contact:

Re: Possible Bug with compiling for pointers

#2 Post by tihomir.losic » 15 Oct 2010 10:28

Hello Steve,

unfortunately, this is compiler bug.
I reported this to our developers, and they will solve that for next release.

Sorry for the inconvenience.

Best regards,

Losic Tihomir
mikroElektronika [Support team]

Post Reply

Return to “mikroBasic PRO for AVR General”