[Bug libstdc++/117520] New: C++26 std::text_encoding: == should be =

2024-11-10 Thread pkeir at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117520 Bug ID: 117520 Summary: C++26 std::text_encoding: == should be = Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc

[Bug libstdc++/117406] std::ilogb should return INT_MAX when argument is infinite also for 16-bit floats

2024-11-01 Thread pkeir at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117406 --- Comment #2 from Paul Keir --- Created attachment 59519 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59519&action=edit Test for the proposed fix.

[Bug libstdc++/117406] std::ilogb should return INT_MAX when argument is infinite also for 16-bit floats

2024-11-01 Thread pkeir at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117406 --- Comment #3 from Paul Keir --- At least for ilogb.

[Bug libstdc++/117406] New: std::ilogb should return INT_MAX when argument is infinite also for 16-bit floats

2024-11-01 Thread pkeir at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117406 Bug ID: 117406 Summary: std::ilogb should return INT_MAX when argument is infinite also for 16-bit floats Product: gcc Version: 15.0 Status: UNCONFIRMED Severi

[Bug libstdc++/117321] New: std::float16_t: undefined reference to `nextafterf16'

2024-10-27 Thread pkeir at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117321 Bug ID: 117321 Summary: std::float16_t: undefined reference to `nextafterf16' Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Compo

[Bug c++/87275] unsequenced writes not diagnosed in constant expression

2024-09-13 Thread pkeir at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87275 Paul Keir changed: What|Removed |Added CC||pkeir at outlook dot com --- Comment #5 from

[Bug c++/55004] [meta-bug] constexpr issues

2024-09-13 Thread pkeir at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55004 Bug 55004 depends on bug 116695, which changed state. Bug 116695 Summary: [c++11/c++14] Undefined behaviour involving unsequenced side effects on a memory location during constant evaluation should not compile https://gcc.gnu.org/bugzilla/show_bu

[Bug c++/116695] [c++11/c++14] Undefined behaviour involving unsequenced side effects on a memory location during constant evaluation should not compile

2024-09-13 Thread pkeir at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116695 Paul Keir changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/116695] New: Undefined behaviour involving unsequenced side effects on a memory location during constant evaluation should not compile

2024-09-12 Thread pkeir at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116695 Bug ID: 116695 Summary: Undefined behaviour involving unsequenced side effects on a memory location during constant evaluation should not compile Product: gcc Ve

[Bug c++/115639] New: Large variations in compilation times involving static_assert

2024-06-25 Thread pkeir at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115639 Bug ID: 115639 Summary: Large variations in compilation times involving static_assert Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal

[Bug c++/111272] [13/14 Regression] Truncated error messages with -std=c++23 and -std=c++26

2024-01-12 Thread pkeir at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111272 --- Comment #8 from Paul Keir --- I wonder if a small part of this bug still remains. The code below should #include , but as it doesn't, we get an error message. The message now gives all the right information but, with -std=c++23 and -std=c++2

[Bug c++/113306] New: constexpr cast from void* fails with typeid result target

2024-01-10 Thread pkeir at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113306 Bug ID: 113306 Summary: constexpr cast from void* fails with typeid result target Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Pri

[Bug libstdc++/113294] New: constexpr error from accessing inactive union member in basic_string after move assignment

2024-01-09 Thread pkeir at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113294 Bug ID: 113294 Summary: constexpr error from accessing inactive union member in basic_string after move assignment Product: gcc Version: 14.0 Status: UNCONFIRMED

[Bug c++/111272] [13/14 Regression] Truncated error messages with -std=c++23 and -std=c++26

2023-09-12 Thread pkeir at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111272 --- Comment #4 from Paul Keir --- I believe P2448R2 would only allow the code, without the static_assert. Explicitly calling `test()`, `Jam::Jam()` and then `Jam::ft()` here would mean evaluating a non-constexpr function (i.e. `ft`). ft is *cons

[Bug c++/111379] New: comparison between unequal pointers to void should be illegal during constant evaluation

2023-09-11 Thread pkeir at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111379 Bug ID: 111379 Summary: comparison between unequal pointers to void should be illegal during constant evaluation Product: gcc Version: 14.0 Status: UNCONFIRMED

[Bug c++/111272] [13/14 Regression] Truncated error messages with -std=c++23 and -std=c++26

2023-09-01 Thread pkeir at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111272 --- Comment #2 from Paul Keir --- Thanks. The `-Winvalid-constexpr` mentioned there is a helpful workaround.

[Bug c++/111272] New: Truncated error messages with -std=c++23 and -std=c++26

2023-09-01 Thread pkeir at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111272 Bug ID: 111272 Summary: Truncated error messages with -std=c++23 and -std=c++26 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Prior

[Bug c++/70248] constexpr initialization with unspecified equality expression accepted

2023-08-22 Thread pkeir at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70248 Paul Keir changed: What|Removed |Added CC||pkeir at outlook dot com --- Comment #10 fro

[Bug c++/110714] constexpr lifetime error: base class this pointer

2023-07-18 Thread pkeir at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110714 --- Comment #3 from Paul Keir --- Actually, there's no need here to delete through the base pointer; so this is perhaps simpler: struct Base { constexpr Base* get_this() { return this; } int x; }; struct Derived : public Base {}; constexp

[Bug c++/110714] constexpr lifetime error: base class this pointer

2023-07-18 Thread pkeir at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110714 --- Comment #2 from Paul Keir --- I know. `delete pf` also works. The issue seems to be with the use of the this pointer within the member function. This is just the MRE - I've come across this issue twice now in our code base.

[Bug c++/110714] New: constexpr lifetime error: base class this pointer

2023-07-18 Thread pkeir at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110714 Bug ID: 110714 Summary: constexpr lifetime error: base class this pointer Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component

[Bug c++/106107] New: dynamic_cast fail within constant expression

2022-06-27 Thread pkeir at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106107 Bug ID: 106107 Summary: dynamic_cast fail within constant expression Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug c++/102406] New: ICE on array declaration sized by a struct member

2021-09-19 Thread pkeir at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102406 Bug ID: 102406 Summary: ICE on array declaration sized by a struct member Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component

[Bug c++/100138] New: ICE with constructor constrained (C++20 Concepts) by parameter pack length

2021-04-18 Thread pkeir at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100138 Bug ID: 100138 Summary: ICE with constructor constrained (C++20 Concepts) by parameter pack length Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: nor