[llvm-bugs] [Bug 30949] New: clang 4.0 r286254 can't use libstdc++ locales in c++1z mode

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Nov 8 11:27:57 PST 2016


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: unassignedclangbugs at nondot.org
          Reporter: bero at lindev.ch
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

[bero at 10cores ~]$ cat test.cc               
#include <locale>
int main(int argc, char **argv) {
}
[bero at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20161108/542a8de7/attachment-0001.html>


More information about the llvm-bugs mailing list