[libcxx-commits] [PATCH] D100005: [libc++] Use the default initializer for char_type in std::num_get::do_get.
Brian Cain via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Sep 18 07:39:20 PDT 2023
bcain added inline comments.
================
Comment at: libcxx/test/std/localization/locale.categories/category.numeric/locale.num.get/user_defined_char_type.pass.cpp:80
+ static locale::id id;
+ Char toupper(Char c) const { return Char(std::toupper(c.underlying_)); }
+ const char* widen(const char* first, const char* last, Char* dst) const {
----------------
I'm investigating a failure that occurs when on this test case in our downstream. I'm not quite certain but it's possible the ambiguity is due to the fact that we are using a 32-bit architecture?
```
libcxx/test/std/localization/locale.categories/category.numeric/locale.num.get/user_defined_char_type.pass.cpp:80:39: error: ambiguous conversion for functional-style cast from 'int' to 'Char'
80 | Char toupper(Char c) const { return Char(std::toupper(c.underlying_)); }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D100005/new/
https://reviews.llvm.org/D100005
More information about the libcxx-commits
mailing list