[Bug c++/117615] [12/13/14/15 Regression] constexpr failure static_cast of Derived virtual Pointer to Member function since r6-4014-gdcdbc004d531b4

2024-12-05 Thread acox at reliablecontrols dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117615 --- Comment #12 from Alec --- Thank you guys for the speedy pickup, triage, and turnaround! Keep up the good work!

[Bug c++/117615] constexpr failure static_cast of Derived virtual Pointer to Member

2024-11-15 Thread acox at reliablecontrols dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117615 --- Comment #1 from Alec --- It is worth noting that the same code compiles under clang-18 (haven't tested other versions), although that doesn't mean they're doing the right thing.

[Bug c++/117615] New: constexpr failure static_cast of Derived virtual Pointer to Member

2024-11-15 Thread acox at reliablecontrols dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117615 Bug ID: 117615 Summary: constexpr failure static_cast of Derived virtual Pointer to Member Product: gcc Version: 14.2.0 Status: UNCONFIRMED Severity: normal

[Bug c++/105865] incorrect "not a consant expression": constexpr pointer-to-member upcast

2022-06-07 Thread acox at reliablecontrols dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105865 --- Comment #2 from Alec --- (In reply to Alec from comment #1) > It also works when trying to use a template helper outside of the constructor > See the example here https://godbolt.org/z/3raenhnjr A regular static_cast placed where the templa

[Bug c++/105865] false positive non-consant expression: static_cast pointer-to-member upcast in constexpr constructor

2022-06-07 Thread acox at reliablecontrols dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105865 --- Comment #1 from Alec --- It also works when trying to use a template helper outside of the constructor See the example here https://godbolt.org/z/3raenhnjr

[Bug c++/105865] New: false positive expression static_cast pointer-to-member upcast in constexpr constructor

2022-06-06 Thread acox at reliablecontrols dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105865 Bug ID: 105865 Summary: false positive expression static_cast pointer-to-member upcast in constexpr constructor Product: gcc Version: 12.1.1 Status: UNCONFIRMED