View Issue Details

IDProjectCategoryView StatusLast Update
00315292.x IDE BugsBuild WindowsPublic2019-12-05 11:24
ReporterScott DunbarAssigned ToRussell Kay 
PriorityMediumSeverityC - GeneralReproducibility100%
Status ResolvedResolutionOpen 
PlatformWindowsOSWindows 10OS Version
Product Version2.2.4 
Target Version2.2.5Fixed in Version 
Summary0031529: Build Windows: Scripts with multiple argument variables in an assignment can generate a warning during YYC builds
 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 In
2.x Runtime Verified In


Scott Dunbar

2019-12-03 09:52


yycwarning.yyz (20,870 bytes)


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 /