diff --git a/icu4c/source/i18n/ucol_bld.cpp b/icu4c/source/i18n/ucol_bld.cpp index 23a7004738..e214b71058 100644 --- a/icu4c/source/i18n/ucol_bld.cpp +++ b/icu4c/source/i18n/ucol_bld.cpp @@ -1116,7 +1116,11 @@ UCATableHeader *ucol_assembleTailoringTable(UColTokenParser *src, UErrorCode *st /* produce canonical closure */ UCollationElements* colEl = ucol_openElements(tempColl, NULL, 0, status); - enumStruct context = { t, tempColl, colEl, status }; + enumStruct context; + context.t = t; + context.tempColl = tempColl; + context.colEl = colEl; + context.status = status; u_enumCharTypes(_enumCategoryRangeClosureCategory, &context); ucol_closeElements(colEl);