<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - clang 4.0 r286254 can't use libstdc++ locales in c++1z mode"
href="https://llvm.org/bugs/show_bug.cgi?id=30949">30949</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>clang 4.0 r286254 can't use libstdc++ locales in c++1z mode
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>-New Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>bero@lindev.ch
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>[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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>