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

--- Comment #4 from Toni Neubert <lutztonineubert at gmail dot com> ---
This code seems to fail for the same reason:

constexpr int get() {
    [[maybe_unused]] auto i = 1 << 32;
    return 0;
}

template<auto a = get()>
constexpr int test() {
    return a;
}

constexpr int t1 = get();
constexpr int t2 = test();

Reply via email to