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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Variable template in        |variable template in
                   |unevaluated context is      |unevaluated context is
                   |wrongly implicitly          |instantiated when should
                   |instantiated                |not be

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Reduced testcase:
    template<typename T> constexpr int z = T::value;

    int main() {
        decltype(z<int>) a = 1;
    }

Reply via email to