We're updating the issue view to help you get more done. 

"explicit instantiation of 'atomic' not in a namespace enclosing 'std'" error with clang-cl and ICU63 RC

Description

From <https://treeherder.mozilla.org/logviewer.html#?job_id=205510698&repo=try&lineNumber=5472>.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 12:41:48 INFO - z:/build/build/src/sccache2/sccache.exe z:/build/build/src/clang/bin/clang-cl.exe -fms-compatibility-version=19.15.26726 -m32 -Fobrkeng.obj -c -DDEBUG=1 -DU_COMMON_IMPLEMENTATION -DUCONFIG_NO_TRANSLITERATION -DUCONFIG_NO_REGULAR_EXPRESSIONS -DUCONFIG_NO_LEGACY_CONVERSION -DU_USING_ICU_NAMESPACE=0 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DU_CHARSET_IS_UTF8 -DU_HAVE_NL_LANGINFO_CODESET=0 -DU_DEBUG=1 -Iz:/build/build/src/config/external/icu/common -Iz:/build/build/src/obj-firefox/config/external/icu/common -Iz:/build/build/src/intl/icu/source/i18n -Iz:/build/build/src/obj-firefox/dist/include -Iz:/build/build/src/obj-firefox/dist/include/nspr -Iz:/build/build/src/obj-firefox/dist/include/nss -MD -FI z:/build/build/src/obj-firefox/mozilla-config.h -DMOZILLA_CLIENT -Qunused-arguments -Qunused-arguments -TP -nologo -w15038 -wd5026 -wd5027 -Zc:sizedDealloc- -wd4091 -wd4577 -D_HAS_EXCEPTIONS=0 -W3 -Gy -Zc:inline -arch:SSE2 -Gw -wd4251 -wd4244 -wd4267 -wd4800 -wd4595 -wd4065 -Wno-inline-new-delete -Wno-invalid-offsetof -Wno-microsoft-enum-value -Wno-microsoft-include -Wno-unknown-pragmas -Wno-ignored-pragmas -Wno-deprecated-declarations -Wno-invalid-noreturn -Wno-inconsistent-missing-override -Wno-implicit-exception-spec-mismatch -Wno-unused-local-typedef -Wno-ignored-attributes -Wno-used-but-marked-unused -we4553 -D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING -GR -Z7 -O2 -Oy- -Wno-macro-redefined -Wno-microsoft-include -Xclang -MP -Xclang -dependency-file -Xclang .deps/brkeng.obj.pp -Xclang -MT -Xclang brkeng.obj z:/build/build/src/intl/icu/source/common/brkeng.cpp 12:41:48 INFO - In file included from z:/build/build/src/intl/icu/source/common/brkeng.cpp:30: 12:41:48 INFO - In file included from z:/build/build/src/intl/icu/source/common/mutex.h:27: 12:41:48 INFO - z:/build/build/src/intl/icu/source/common/umutex.h(63,35): error: explicit instantiation of 'atomic' not in a namespace enclosing 'std' 12:41:48 INFO - template struct U_COMMON_API std::atomic<int32_t>; 12:41:48 INFO - ^ 12:41:48 INFO - z:\build\build\src\vs2017_15.8.4\VC\include\atomic(634,9): note: explicit instantiation refers here 12:41:48 INFO - struct atomic 12:41:48 INFO - ^ 12:41:48 INFO - In file included from z:/build/build/src/intl/icu/source/common/brkeng.cpp:30: 12:41:48 INFO - In file included from z:/build/build/src/intl/icu/source/common/mutex.h:27: 12:41:48 INFO - z:/build/build/src/intl/icu/source/common/umutex.h(63,35): warning: explicit instantiation of 'atomic<int>' that occurs after an explicit specialization has no effect [-Winstantiation-after-specialization] 12:41:48 INFO - template struct U_COMMON_API std::atomic<int32_t>; 12:41:48 INFO - ^ 12:41:48 INFO - z:\build\build\src\vs2017_15.8.4\VC\include\xxatomic(161,9): note: previous template specialization is here 12:41:48 INFO - struct atomic<_ITYPE> 12:41:48 INFO - ^ 12:41:48 INFO - 1 warning and 1 error generated. 12:41:48 INFO - z:/build/build/src/config/rules.mk:1118: recipe for target 'brkeng.obj' failed

Status

Assignee

Jeff Genovy

Reporter

André Bargull

Labels

Reviewer

None

Time Needed

None

Start date

None

Components

Fix versions

Priority

major