View Issue Details

IDProjectCategoryView StatusLast Update
0029765RunnerWindows (YYC)Public2019-05-13 17:20
ReporterYellowAfterlifeAssigned ToRussell Kay 
PriorityLowSeverityC - GeneralReproducibility100%
Status ClosedResolutionFixed 
PlatformWindowsOSWindows 10 ProOS Version>=1703
Product Version2.1.4 
Target Version2.2.1Fixed in Version2.2.1 
Summary0029765: Windows (YYC): Parentheses are not inserted around lower-priority binary operators
Description
var s = "::hi";
show_debug_message((string_char_at(s, 1) == ":") + (string_char_at(s, 2) == ":"));

C++:
YYRValue* __pArg2__[]={&/* local */local_s, (YYRValue*)&gs_constArg0_5BC4AFE6};
YYRValue* __pArg4__[]={&/* local */local_s, (YYRValue*)&gs_constArg1_5BC4AFE6};
YYGML_show_debug_message(((int)strcmp(YYGML_CallLegacyFunction(pSelf,pOther,__ret1__,2,g_FUNC_string_char_at.val,__pArg2__), g_pString3_5BC4AFE6) == 0 + (int)strcmp(YYGML_CallLegacyFunction(pSelf,pOther,__ret2__,2,g_FUNC_string_char_at.val,__pArg4__), g_pString3_5BC4AFE6) == 0));

C++ (to the point):
YYGML_show_debug_message(((int)strcmp(_, _) == 0 + (int)strcmp(_, _) == 0));
Additional InformationIt's okay to have spare parentheses around expressions
TagsRunner, yyc
1.4 Found In
2.x Runtime Found In9.9.1.1081
2.x Runtime Verified In9.9.1.1437

Activities

YellowAfterlife

2018-07-06 23:13

Developer  

a_bug.yyz (46,289 bytes)

Russell Kay

2018-07-17 21:35

Manager   ~0060881

Fixed in gitlab