[Bug c++/119726] Template Specialization of Inner class from Inherited template class gives the wrong error with: " too few template-parameter-lists"

2025-04-14 Thread awia00 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119726 --- Comment #2 from Anders Wind --- Two questions: I am a bit interested in why my original case is correctly rejecting the code, but the following is not being rejected (A is no longer a template class). ``` struct A { template struc

[Bug c++/119726] New: Template Specialization of Inner class from Inherited template class fails with: " too few template-parameter-lists"

2025-04-11 Thread awia00 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119726 Bug ID: 119726 Summary: Template Specialization of Inner class from Inherited template class fails with: " too few template-parameter-lists" Product: gcc Version

[Bug c++/119259] compilation error: *constexpr* operator==(const T&) const = default` forces compilation of std::vector's operator== function

2025-03-13 Thread awia00 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119259 --- Comment #10 from Anders Wind --- More interesting behavior: https://godbolt.org/z/K8cjEqTaa ``` #include template struct equatable { T val; // this does not constexpr bool operator==(const equatable& o)const noexcept requires

[Bug c++/119259] compilation error: *constexpr* operator==(const T&) const = default` forces compilation of std::vector's operator== function

2025-03-12 Thread awia00 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119259 --- Comment #6 from Anders Wind --- To give an example as to why it would be beneficial to not eagerly fail in this case: We have a template type which, just like my example, has operator==()=default (as well as other functionality). This enable

[Bug libstdc++/119259] New: compilation error: *constexpr* operator==(const T&) const = default` forces compilation of std::vector's operator== function

2025-03-12 Thread awia00 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119259 Bug ID: 119259 Summary: compilation error: *constexpr* operator==(const T&) const = default` forces compilation of std::vector's operator== function Product: gcc Version: 14.2.1