https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123661

--- Comment #1 from Boris Staletic <boris.staletic at protonmail dot com> ---
Created attachment 63544
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=63544&action=edit
backtrace just before printing the error

Added the cc1plus stack trace. Also, here's a test case that does not require
any includes:

struct s {
    int x;
};

void f(int s::*);

template <auto class_memb = ^^s::x>
auto bind_data_member() {
    f(&[:class_memb:]);
}

int main() {
    bind_data_member();
}

Reply via email to