View Issue Details

IDProjectCategoryView StatusLast Update
00315292.x IDE BugsBuild WindowsPublic2020-03-27 14:38
ReporterScott DunbarAssigned ToDan 
PriorityMediumSeverityC - GeneralReproducibility100%
Status ClosedResolutionFixed 
PlatformWindowsOSWindows 10OS Version
Product Version2.2.4 
Target Version2.3.0Fixed in Version2.3.0 
Summary0031529: Build Windows: Scripts with multiple argument variables in an assignment can generate a warning during YYC builds
DescriptionIssue:
 When building a project for YYC that contains scripts that have multiple references to argument variables will generate "YYError("referencing argument index out of range %d"" errors, such as:

Z:/yycwarning_77216A98/yycwarning/default/Scripts/llvm-win/gml_Script_drawcrosshair.gml.cpp:31:20: warning: multiple unsequenced modifications to '_yytmp_' [-Wunsequenced]
local_len=((*_args[YY_CHECK_ARG_RANGE((int)(0), _count)]) + (((*_args[YY_CHECK_ARG_RANGE((int)(0), _count)]) * 0.5) * (/* local */local_dis / (double)16)));
                   ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
X://yyc/include\YYGML.h:70:44: note: expanded from macro 'YY_CHECK_ARG_RANGE'
#define YY_CHECK_ARG_RANGE( i, r ) (_yytmp_=(i), ((_yytmp_<(r)) ? _yytmp_ : (YYError("referencing argument index out of range %d", _yytmp_), 0)))

This does not prevent the build, nor is any unusual behaviour seen in game.


Example for clarification:

//this does not generate any warnings
var arg0 = argument[0];
var len = arg0 + (arg0*0.5);

//this generates warnings
//var len = argument[0] + (argument[0]*0.5);
Steps To Reproduce1. import attached project
2. select windows yyc as target platform
3. run project
4. observe an error like shown in the description is generated in the output window
TagsNo tags attached.
2.x IDE Found In
2.x Runtime Found In2.2.4.374
2.x IDE Verified In23.1.1.131
2.x Runtime Verified In23.1.1.114

Activities

Scott Dunbar

2019-12-03 09:52

Adminstrator  

yycwarning.yyz (20,870 bytes)

Fritz

2019-12-04 09:35

Manager   ~0065192

Can we check in 2.2.5

Scott Dunbar

2019-12-04 15:03

Adminstrator   ~0065195

The issue also occurs in 2.2.5.479 / 2.2.5.376

Scott Dunbar

2020-03-02 11:33

Adminstrator   ~0065404

The issue still occurs in IDE v2.2.5.481 Runtime v2.2.5.378

Dan

2020-03-02 11:41

Adminstrator   ~0065405

Had been mistakenly marked as in 2.2.5 - it is not. Will get this resolved for 2.3.0.

Dan

2020-03-27 14:38

Adminstrator   ~0065553

Will say CB5, as that was when the report was updated, but likely has been in most CBs so far.