[Bug libstdc++/120465] std::erase_if for std::flat_map calls predicate with incorrect type

2025-06-01 Thread eligorkadaf at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120465 --- Comment #7 from Eligor Kadaf --- Thank you for the fast fix.

[Bug libstdc++/120465] Incorrect value_type for std::flat_map

2025-05-28 Thread eligorkadaf at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120465 --- Comment #1 from Eligor Kadaf --- The value_type seems to be as expected: https://godbolt.org/z/MWs531orx However the example in comment above shall compile, yet it doesn't. Fun fact is that if we change const auto& pair to const std::pair& p

[Bug c++/120465] New: Incorrect value_type for std::flat_map

2025-05-28 Thread eligorkadaf at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120465 Bug ID: 120465 Summary: Incorrect value_type for std::flat_map Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug c++/101911] New: Type cannot be defined inside of the lambda in unevaluated context

2021-08-14 Thread eligorkadaf at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101911 Bug ID: 101911 Summary: Type cannot be defined inside of the lambda in unevaluated context Product: gcc Version: 11.2.0 Status: UNCONFIRMED Severity: normal

[Bug c++/101288] Invalid instantiated redeclaration considered valid by gcc

2021-07-04 Thread eligorkadaf at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101288 --- Comment #1 from Eligor Kadaf --- Compiler shall provide diagnostics in the current example according to https://eel.is/c++draft/basic.def.odr#15

[Bug c++/101287] Implicit template specialization redefines member function but compiles

2021-07-04 Thread eligorkadaf at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101287 Eligor Kadaf changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED

[Bug c++/101287] Implicit template specialization redefines member function but compiles

2021-07-04 Thread eligorkadaf at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101287 --- Comment #3 from Eligor Kadaf --- I had found this example during the investigation of one another exmaple from real life, which was the bug in clang, and as fas as it is marked as error in standard I had decided it must be compile time error

[Bug c++/101288] New: Invalid instantiated redeclaration considered valid by gcc

2021-07-01 Thread eligorkadaf at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101288 Bug ID: 101288 Summary: Invalid instantiated redeclaration considered valid by gcc Product: gcc Version: 11.1.0 Status: UNCONFIRMED Severity: normal

[Bug c++/101287] Implicit template specialization redefines member function but compiles

2021-07-01 Thread eligorkadaf at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101287 --- Comment #2 from Eligor Kadaf --- Agree, and the link was incorrect, so there is a correct one: https://godbolt.org/z/zEz8c7abM

[Bug c++/101287] New: Implicite template specialization redefines member function but compiles

2021-07-01 Thread eligorkadaf at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101287 Bug ID: 101287 Summary: Implicite template specialization redefines member function but compiles Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: norma

[Bug c++/100862] New: using enum member access fail

2021-06-01 Thread eligorkadaf at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100862 Bug ID: 100862 Summary: using enum member access fail Product: gcc Version: 11.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ As

[Bug c++/97230] Invocation of non-static member function on a null instance in core constant expression should not be allowed

2020-09-28 Thread eligorkadaf at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97230 --- Comment #1 from Eligor Kadaf --- Basically it described in 7th paragraph in [expr.const] of the latest C++ standard draft: https://eel.is/c++draft/expr.const#5

[Bug c++/97230] New: Invocation of non-static member function on a null instance in core constant expression should not be allowed

2020-09-28 Thread eligorkadaf at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97230 Bug ID: 97230 Summary: Invocation of non-static member function on a null instance in core constant expression should not be allowed Product: gcc Version: 10.0