diff --git a/icu4c/source/i18n/msgfmt.cpp b/icu4c/source/i18n/msgfmt.cpp index 73ecc14e8f..b1644e51dd 100644 --- a/icu4c/source/i18n/msgfmt.cpp +++ b/icu4c/source/i18n/msgfmt.cpp @@ -1132,7 +1132,8 @@ void MessageFormat::formatComplexSubMessage(int32_t msgStart, } } if (sb.indexOf(LEFT_CURLY_BRACE) >= 0) { - MessageFormat subMsgFormat(UnicodeString(), fLocale, success); + UnicodeString emptyPattern; // gcc 3.3.3 fails with "UnicodeString()" as the first parameter. + MessageFormat subMsgFormat(emptyPattern, fLocale, success); subMsgFormat.applyPattern(sb, UMSGPAT_APOS_DOUBLE_REQUIRED, NULL, success); subMsgFormat.format(0, 0, arguments, argumentNames, cnt, appendTo, NULL, success); } else {