ROBOTC.net forums
http://robotc.net/forums/

RobotC 3.51 bug 8
http://robotc.net/forums/viewtopic.php?f=63&t=4882
Page 1 of 1

Author:  MHTS [ Mon Sep 24, 2012 12:19 am ]
Post subject:  RobotC 3.51 bug 8

When compiling the following code, I got a compiler error:
**Severe*:Internal Debug: Bad 'parmSourceStackULongVar' result from 'Dereferencing' point
Code:
#define GetData(p)  (GetRawData( \
                     &((p)->n1), \
                     &((p)->n2)))

typedef struct
{
    int n1;
    int n2;
} OBJ;

OBJ g_obj;

void GetRawData(int *p1, int *p2)
{
    *p1 = 1;
    *p2 = 2;
}

task main()
{
    GetRawData(&g_obj.n1, &g_obj.n2);
    GetData(&g_obj);
    nxtDisplayTextLine(0, "n1=%d", g_obj.n1);
    nxtDisplayTextLine(1, "n2=%d", g_obj.n2);
}

Author:  tfriez [ Wed Oct 10, 2012 1:20 pm ]
Post subject:  Re: RobotC 3.51 bug 8

This is now resolved in the latest internal build of ROBOTC and will be included in the next BETA.

Thanks!

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/