https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122875
Boris Staletic <boris.staletic at protonmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |boris.staletic at protonmail
dot c
| |om
--- Comment #3 from Boris Staletic <boris.staletic at protonmail dot com> ---
Another test case for this thing:
```
#include <meta>
template <std::meta::info Member> static constexpr auto member_ptr_helper = &[:
Member :];
consteval auto member_function_pointer_of(std::meta::info f) {
return substitute(^^member_ptr_helper, {reflect_constant(f)});
}
template <auto F> struct tmpl{};
struct Test {
auto myfn() const {}
};
constexpr auto ovld = [:substitute(^^tmpl,
{member_function_pointer_of(^^Test::myfn)}):];
```
Ultimately, the invalid substitute in my test case is another bug that I have
reported[0].
Although, the ICE error message is not the same. Should I open a separate bug
report?
[0]: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123661