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

--- Comment #32 from friedkeenan at protonmail dot com ---
Not sure if this is already a known bug (I don't think it's listed here at
least, but if I'm wrong, then I apologize), but the following code currently
causes an ICE:

#include <meta>

template<typename T>
void func() {
    constexpr auto ctx = std::meta::access_context::unprivileged();
}

Godbolt link: https://godbolt.org/z/r1xE6b6Yx


The ICE also occurs with ::unchecked() in place of ::unprivileged(), but not
with ::current().

The ICE only occurs when the function is a template function, and only when the
ctx variable is constexpr, whether it's static or not.

(Also thank you all for your work, it is both very impressive and very
appreciated!)

Reply via email to