https://llvm.org/bugs/show_bug.cgi?id=30949
Bug ID: 30949 Summary: clang 4.0 r286254 can't use libstdc++ locales in c++1z mode Product: clang Version: unspecified Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs Assignee: unassignedclangb...@nondot.org Reporter: b...@lindev.ch CC: llvm-bugs@lists.llvm.org Classification: Unclassified [bero@10cores ~]$ cat test.cc #include <locale> int main(int argc, char **argv) { } [bero@10cores ~]$ clang++ -std=c++1z test.cc In file included from test.cc:1: In file included from /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/locale:39: In file included from /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_classes.h:850: /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_classes.tcc:279:5: error: explicit instantiation of 'has_facet' does not refer to a function template, variable template, member function, member class, or static data member has_facet<collate<char> >(const locale&); ^ /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_classes.tcc:104:5: note: candidate template ignored: could not match 'bool (const std::locale &) throw()' against 'bool (const std::locale &)' has_facet(const locale& __loc) throw() ^ /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_classes.tcc:291:5: error: explicit instantiation of 'has_facet' does not refer to a function template, variable template, member function, member class, or static data member has_facet<collate<wchar_t> >(const locale&); ^ /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_classes.tcc:104:5: note: candidate template ignored: could not match 'bool (const std::locale &) throw()' against 'bool (const std::locale &)' has_facet(const locale& __loc) throw() ^ In file included from test.cc:1: In file included from /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/locale:40: In file included from /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_facets.h:2651: /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_facets.tcc:1319:5: error: explicit instantiation of 'has_facet' does not refer to a function template, variable template, member function, member class, or static data member has_facet<ctype<char> >(const locale&); ^ /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_classes.tcc:104:5: note: candidate template ignored: could not match 'bool (const std::locale &) throw()' against 'bool (const std::locale &)' has_facet(const locale& __loc) throw() ^ In file included from test.cc:1: In file included from /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/locale:40: In file included from /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_facets.h:2651: /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_facets.tcc:1323:5: error: explicit instantiation of 'has_facet' does not refer to a function template, variable template, member function, member class, or static data member has_facet<numpunct<char> >(const locale&); ^ /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_classes.tcc:104:5: note: candidate template ignored: could not match 'bool (const std::locale &) throw()' against 'bool (const std::locale &)' has_facet(const locale& __loc) throw() ^ In file included from test.cc:1: In file included from /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/locale:40: In file included from /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_facets.h:2651: /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_facets.tcc:1327:5: error: explicit instantiation of 'has_facet' does not refer to a function template, variable template, member function, member class, or static data member has_facet<num_put<char> >(const locale&); ^ /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_classes.tcc:104:5: note: candidate template ignored: could not match 'bool (const std::locale &) throw()' against 'bool (const std::locale &)' has_facet(const locale& __loc) throw() ^ In file included from test.cc:1: In file included from /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/locale:40: In file included from /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_facets.h:2651: /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_facets.tcc:1331:5: error: explicit instantiation of 'has_facet' does not refer to a function template, variable template, member function, member class, or static data member has_facet<num_get<char> >(const locale&); ^ /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_classes.tcc:104:5: note: candidate template ignored: could not match 'bool (const std::locale &) throw()' against 'bool (const std::locale &)' has_facet(const locale& __loc) throw() ^ In file included from test.cc:1: In file included from /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/locale:40: In file included from /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_facets.h:2651: /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_facets.tcc:1358:5: error: explicit instantiation of 'has_facet' does not refer to a function template, variable template, member function, member class, or static data member has_facet<ctype<wchar_t> >(const locale&); ^ /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_classes.tcc:104:5: note: candidate template ignored: could not match 'bool (const std::locale &) throw()' against 'bool (const std::locale &)' has_facet(const locale& __loc) throw() ^ In file included from test.cc:1: In file included from /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/locale:40: In file included from /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_facets.h:2651: /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_facets.tcc:1362:5: error: explicit instantiation of 'has_facet' does not refer to a function template, variable template, member function, member class, or static data member has_facet<numpunct<wchar_t> >(const locale&); ^ /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_classes.tcc:104:5: note: candidate template ignored: could not match 'bool (const std::locale &) throw()' against 'bool (const std::locale &)' has_facet(const locale& __loc) throw() ^ In file included from test.cc:1: In file included from /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/locale:40: In file included from /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_facets.h:2651: /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_facets.tcc:1366:5: error: explicit instantiation of 'has_facet' does not refer to a function template, variable template, member function, member class, or static data member has_facet<num_put<wchar_t> >(const locale&); ^ /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_classes.tcc:104:5: note: candidate template ignored: could not match 'bool (const std::locale &) throw()' against 'bool (const std::locale &)' has_facet(const locale& __loc) throw() ^ In file included from test.cc:1: In file included from /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/locale:40: In file included from /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_facets.h:2651: /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_facets.tcc:1370:5: error: explicit instantiation of 'has_facet' does not refer to a function template, variable template, member function, member class, or static data member has_facet<num_get<wchar_t> >(const locale&); ^ /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_classes.tcc:104:5: note: candidate template ignored: could not match 'bool (const std::locale &) throw()' against 'bool (const std::locale &)' has_facet(const locale& __loc) throw() ^ In file included from test.cc:1: In file included from /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/locale:41: In file included from /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_facets_nonio.h:2011: /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/codecvt.h:657:5: error: explicit instantiation of 'has_facet' does not refer to a function template, variable template, member function, member class, or static data member has_facet<codecvt<char, char, mbstate_t> >(const locale&); ^ /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_classes.tcc:104:5: note: candidate template ignored: could not match 'bool (const std::locale &) throw()' against 'bool (const std::locale &)' has_facet(const locale& __loc) throw() ^ In file included from test.cc:1: In file included from /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/locale:41: In file included from /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_facets_nonio.h:2011: /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/codecvt.h:668:5: error: explicit instantiation of 'has_facet' does not refer to a function template, variable template, member function, member class, or static data member has_facet<codecvt<wchar_t, char, mbstate_t> >(const locale&); ^ /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_classes.tcc:104:5: note: candidate template ignored: could not match 'bool (const std::locale &) throw()' against 'bool (const std::locale &)' has_facet(const locale& __loc) throw() ^ In file included from test.cc:1: In file included from /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/locale:41: In file included from /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_facets_nonio.h:2013: /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_facets_nonio.tcc:1381:5: error: explicit instantiation of 'has_facet' does not refer to a function template, variable template, member function, member class, or static data member has_facet<moneypunct<char> >(const locale&); ^ /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_classes.tcc:104:5: note: candidate template ignored: could not match 'bool (const std::locale &) throw()' against 'bool (const std::locale &)' has_facet(const locale& __loc) throw() ^ In file included from test.cc:1: In file included from /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/locale:41: In file included from /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_facets_nonio.h:2013: /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_facets_nonio.tcc:1385:5: error: explicit instantiation of 'has_facet' does not refer to a function template, variable template, member function, member class, or static data member has_facet<money_put<char> >(const locale&); ^ /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_classes.tcc:104:5: note: candidate template ignored: could not match 'bool (const std::locale &) throw()' against 'bool (const std::locale &)' has_facet(const locale& __loc) throw() ^ In file included from test.cc:1: In file included from /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/locale:41: In file included from /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_facets_nonio.h:2013: /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_facets_nonio.tcc:1389:5: error: explicit instantiation of 'has_facet' does not refer to a function template, variable template, member function, member class, or static data member has_facet<money_get<char> >(const locale&); ^ /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_classes.tcc:104:5: note: candidate template ignored: could not match 'bool (const std::locale &) throw()' against 'bool (const std::locale &)' has_facet(const locale& __loc) throw() ^ In file included from test.cc:1: In file included from /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/locale:41: In file included from /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_facets_nonio.h:2013: /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_facets_nonio.tcc:1393:5: error: explicit instantiation of 'has_facet' does not refer to a function template, variable template, member function, member class, or static data member has_facet<__timepunct<char> >(const locale&); ^ /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_classes.tcc:104:5: note: candidate template ignored: could not match 'bool (const std::locale &) throw()' against 'bool (const std::locale &)' has_facet(const locale& __loc) throw() ^ In file included from test.cc:1: In file included from /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/locale:41: In file included from /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_facets_nonio.h:2013: /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_facets_nonio.tcc:1397:5: error: explicit instantiation of 'has_facet' does not refer to a function template, variable template, member function, member class, or static data member has_facet<time_put<char> >(const locale&); ^ /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_classes.tcc:104:5: note: candidate template ignored: could not match 'bool (const std::locale &) throw()' against 'bool (const std::locale &)' has_facet(const locale& __loc) throw() ^ In file included from test.cc:1: In file included from /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/locale:41: In file included from /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_facets_nonio.h:2013: /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_facets_nonio.tcc:1401:5: error: explicit instantiation of 'has_facet' does not refer to a function template, variable template, member function, member class, or static data member has_facet<time_get<char> >(const locale&); ^ /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_classes.tcc:104:5: note: candidate template ignored: could not match 'bool (const std::locale &) throw()' against 'bool (const std::locale &)' has_facet(const locale& __loc) throw() ^ In file included from test.cc:1: In file included from /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/locale:41: In file included from /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_facets_nonio.h:2013: /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_facets_nonio.tcc:1405:5: error: explicit instantiation of 'has_facet' does not refer to a function template, variable template, member function, member class, or static data member has_facet<messages<char> >(const locale&); ^ /usr/bin/../lib64/gcc/x86_64-mandriva-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/locale_classes.tcc:104:5: note: candidate template ignored: could not match 'bool (const std::locale &) throw()' against 'bool (const std::locale &)' has_facet(const locale& __loc) throw() ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs