[Bug libstdc++/119918] formattable returns true for types other than char and wchar_t

2025-04-24 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119918 --- Comment #1 from Tomasz Kamiński --- This is similar to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119517.

[Bug libstdc++/119918] formattable returns true for types other than char and wchar_t

2025-04-24 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119918 Tomasz Kamiński changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug libstdc++/119918] New: formattable returns true for types other than char and wchar_t

2025-04-24 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119918 Bug ID: 119918 Summary: formattable returns true for types other than char and wchar_t Product: gcc Version: 14.1.0 Status: UNCONFIRMED Severity: normal

[Bug libstdc++/119840] FAIL: g++.old-deja/g++.robertl/eb73.C -std=gnu++26 (test for excess errors)

2025-04-18 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119840 --- Comment #4 from Tomasz Kamiński --- I would like to get confirmation from John David Anglin, that warnings no longer appear on the target.

[Bug libstdc++/119840] FAIL: g++.old-deja/g++.robertl/eb73.C -std=gnu++26 (test for excess errors)

2025-04-17 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119840 Tomasz Kamiński changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug libstdc++/119754] std::uninitialized_value_construct does not begin lifetime of trivial types

2025-04-15 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119754 --- Comment #3 from Tomasz Kamiński --- Except that `::operator new` does not perform implicit object creation at compile time per https://eel.is/c++draft/intro.object#14: > Except during constant evaluation, any implicit or explicit invocation

[Bug libstdc++/119754] std::uninitialized_value_construct does not begin lifetime of trivial types

2025-04-15 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119754 Tomasz Kamiński changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug libstdc++/119725] std/format/debug.cc etc. FAIL

2025-04-14 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119725 Tomasz Kamiński changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |tkaminsk at gcc dot gnu.org

[Bug libstdc++/119725] std/format/debug.cc etc. FAIL

2025-04-11 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119725 --- Comment #2 from Tomasz Kamiński --- I do not (yet) have access to solaris machine. Would it be possible for you to verify that all tests passes with following adjustments: diff --git a/libstdc++-v3/testsuite/std/format/debug.cc b/libstdc++-v

[Bug libstdc++/119725] std/format/debug.cc etc. FAIL

2025-04-11 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119725 Tomasz Kamiński changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug libstdc++/111055] [C++23] Implement P1206R7, Conversions from ranges to containers

2025-04-11 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111055 Tomasz Kamiński changed: What|Removed |Added Target Milestone|--- |15.0

[Bug libstdc++/106749] Implement C++23 library features

2025-04-11 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106749 Bug 106749 depends on bug 111055, which changed state. Bug 111055 Summary: [C++23] Implement P1206R7, Conversions from ranges to containers https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111055 What|Removed |Add

[Bug libstdc++/119415] flat_set::insert_range may not handle C++20 common-range

2025-04-11 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119415 Bug 119415 depends on bug 111055, which changed state. Bug 111055 Summary: [C++23] Implement P1206R7, Conversions from ranges to containers https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111055 What|Removed |Add

[Bug libstdc++/111053] std::ranges::copy is missing important optimizations

2025-04-11 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111053 Bug 111053 depends on bug 111055, which changed state. Bug 111055 Summary: [C++23] Implement P1206R7, Conversions from ranges to containers https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111055 What|Removed |Add

[Bug libstdc++/111055] [C++23] Implement P1206R7, Conversions from ranges to containers

2025-04-11 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111055 Tomasz Kamiński changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug libstdc++/116958] std::views::transform loses track of the range size

2025-04-11 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116958 Bug 116958 depends on bug 111055, which changed state. Bug 111055 Summary: [C++23] Implement P1206R7, Conversions from ranges to containers https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111055 What|Removed |Add

[Bug libstdc++/119593] Format width is not correctly handled for wide string/characters

2025-04-03 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119593 Tomasz Kamiński changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug libstdc++/119593] Format width is not correctly handled for wide string/characters

2025-04-03 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119593 --- Comment #3 from Tomasz Kamiński --- Two separate problems compound in this case: * UTF-32LE, UTF-32BE used for wchar_t, are not recognized as unicode encoding * character with is always assumed to be 1

[Bug libstdc++/119593] Format width is not correctly handled for wide string/characters

2025-04-03 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119593 --- Comment #2 from Tomasz Kamiński --- The problem is not limited to wide characters, and also appears for wide strings: std::format(L"{:+<3}", L"\U0001f921"); // two '+' of paddings // https://godbolt.org/z/o4s7qTEz9

[Bug libstdc++/119593] Format width is not correctly handled for wide string/characters

2025-04-03 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119593 Tomasz Kamiński changed: What|Removed |Added Summary|Format width is not |Format width is not

[Bug libstdc++/119593] New: Format width is not correctly handled for unicode characters

2025-04-02 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119593 Bug ID: 119593 Summary: Format width is not correctly handled for unicode characters Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal

[Bug libstdc++/119517] formatter for chrono types are underconstrained

2025-03-31 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119517 Tomasz Kamiński changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug libstdc++/119517] formatter for chrono types are underconstrained

2025-03-29 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119517 --- Comment #2 from Tomasz Kamiński --- Jonathan noted that zoned_time is specified in standard to accept unconstrained FormatContext in [time.format] p19 (https://eel.is/c++draft/time.format#19).

[Bug libstdc++/119517] formatter for chrono types are underconstrained

2025-03-28 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119517 Tomasz Kamiński changed: What|Removed |Added Version|13.0|15.0 Status|UNCONFIRMED

[Bug libstdc++/119517] New: formatter for chrono types are underconstrained

2025-03-28 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119517 Bug ID: 119517 Summary: formatter for chrono types are underconstrained Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug libstdc++/119415] flat_set::insert_range may not handle C++20 common-range

2025-03-26 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119415 --- Comment #19 from Tomasz Kamiński --- Updated resolution to use __has_input_iter_cat instead of __cpp17_input_iterator.

[Bug libstdc++/119415] flat_set::insert_range may not handle C++20 common-range

2025-03-25 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119415 --- Comment #17 from Tomasz Kamiński --- In the same file we have: __has_input_iter_cat.

[Bug libstdc++/119415] flat_set::insert_range may not handle C++20 common-range

2025-03-25 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119415 --- Comment #12 from Tomasz Kamiński --- I have realized that with the resolution of the https://cplusplus.github.io/LWG/lwg-defects.html#3749, you can run into this problem by doing: auto r = std::views::iota(__int128(0)) | std::views::take(5)

[Bug libstdc++/119415] flat_set::insert_range may not handle C++20 common-range

2025-03-25 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119415 --- Comment #9 from Tomasz Kamiński --- > Hum, meeting Cpp17LegacyIterator requirements does not mean it is a C++17 > input iterator, only iterator_traits::iterator_category represents its > category, so __cpp17_input_iterator should not be us

[Bug libstdc++/119415] flat_set::insert_range may not handle C++20 common-range

2025-03-25 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119415 Tomasz Kamiński changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |tkaminsk at gcc dot gnu.org

[Bug libstdc++/119415] flat_set::insert_range may not handle C++20 common-range

2025-03-24 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119415 --- Comment #4 from Tomasz Kamiński --- If want to support user-defined containers, I think we should check if iterator_traits::iterator category exists, before calling insert(Iterator, Iterator) overload. This will prevent hard-errors from old

[Bug libstdc++/111055] [C++23] Implement P1206R7, Conversions from ranges to containers

2025-03-21 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111055 --- Comment #16 from Tomasz Kamiński --- The changes are also required for .

[Bug libstdc++/119358] _M_rehash_insert of unordered multiset/maps misses casting of difference_type

2025-03-19 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119358 Tomasz Kamiński changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug libstdc++/119358] _M_rehash_insert of unordered multiset/maps misses casting of difference_type

2025-03-18 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119358 Tomasz Kamiński changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug libstdc++/111055] [C++23] Implement P1206R7, Conversions from ranges to containers

2025-03-18 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111055 --- Comment #15 from Tomasz Kamiński --- The still remains to be implemented.

[Bug libstdc++/111138] views::zip_transform is underconstrained for empty range pack

2025-03-14 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38 Tomasz Kamiński changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug libstdc++/108053] std::visit_format_arg should hide __int128 and other extensions behind a handle

2025-03-13 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108053 Tomasz Kamiński changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug libstdc++/108053] std::visit_format_arg should hide __int128 and other extensions behind a handle

2025-03-13 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108053 Tomasz Kamiński changed: What|Removed |Added Target Milestone|--- |15.0

[Bug libstdc++/88322] Implement C++20 library features.

2025-03-13 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88322 Bug 88322 depends on bug 108053, which changed state. Bug 108053 Summary: std::visit_format_arg should hide __int128 and other extensions behind a handle https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108053 What|Removed

[Bug libstdc++/119246] Result basic_format_arg::check_dynamic_spec is incorrect for extended floating point types

2025-03-12 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119246 Tomasz Kamiński changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug libstdc++/119246] Result basic_format_arg::check_dynamic_spec is incorrect for extended floating point types

2025-03-12 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119246 --- Comment #2 from Tomasz Kamiński --- We should also see if we can format `_Float128` and `__float128` by casting to either of them. Similary how we handle `_Float32` and other type now.

[Bug libstdc++/119246] Result basic_format_arg::check_dynamic_spec is incorrect for extended floating point types

2025-03-12 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119246 --- Comment #1 from Tomasz Kamiński --- As described in PR108053, this problem is caused by normalization of this floating point types to standard floating point type, where they have same representation. We lost the information about the source

[Bug libstdc++/108053] std::visit_format_arg should hide __int128 and other extensions behind a handle

2025-03-12 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108053 Tomasz Kamiński changed: What|Removed |Added CC||tkaminsk at gcc dot gnu.org Last re

[Bug libstdc++/119246] New: Result basic_format_arg::check_dynamic_spec is incorrect for extended floating point types

2025-03-12 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119246 Bug ID: 119246 Summary: Result basic_format_arg::check_dynamic_spec is incorrect for extended floating point types Product: gcc Version: 13.0 Status: UNCONFIRMED

[Bug libstdc++/111138] views::zip_transform is underconstrained for empty range pack

2025-03-07 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38 Tomasz Kamiński changed: What|Removed |Added Severity|normal |minor

[Bug libstdc++/111138] views::zip_transform is underconstrained for empty range pack

2025-03-07 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38 --- Comment #2 from Tomasz Kamiński --- The issue is caused by the fact that we do not check `move_constructible && regular_invocable` (required by [range.zip.transform] p2.1.1) for `sizeof...(_Ts) == 0` case. ``` struct _ZipTransform { templa

[Bug libstdc++/111138] views::zip_transform is underconstrained for empty range pack

2025-03-07 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38 Tomasz Kamiński changed: What|Removed |Added Last reconfirmed||2025-03-07 Keywords|

[Bug libstdc++/119121] [14 Regression] subrange conversion to pair-like does not work

2025-03-05 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119121 --- Comment #2 from Tomasz Kamiński --- Committed to master as r15-7830-g95b2f8d8fb3131

[Bug libstdc++/119121] subrange conversion to tuple-like does not work

2025-03-05 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119121 Tomasz Kamiński changed: What|Removed |Added Last reconfirmed||2025-03-05 Status|UNCONFI

[Bug libstdc++/119121] [14/15 Regression] subrange conversion to tuple-like does not work

2025-03-05 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119121 --- Comment #1 from Tomasz Kamiński --- Introduced in g:65b4cba9d6a9ffe9b4d4bdff90727a7064cc0e3b The `is_reference_v<_Vp>` should use `_Tp` instead. ``` template concept __pair_like_convertible_from - = !range<_Tp> && __pair_l

[Bug libstdc++/119121] [14/15 Regression] subrange conversion to tuple-like does not work

2025-03-05 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119121 Tomasz Kamiński changed: What|Removed |Added Known to work||13.3.0 Keywords|

[Bug libstdc++/119121] New: subrange conversion to tuple-like does not work

2025-03-05 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119121 Bug ID: 119121 Summary: subrange conversion to tuple-like does not work Product: gcc Version: 14.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component