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

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Patrick Palka <ppa...@gcc.gnu.org>:

https://gcc.gnu.org/g:c37ed38ada788ae410c48ec6d8c9b5d9f32ab8cf

commit r13-6989-gc37ed38ada788ae410c48ec6d8c9b5d9f32ab8cf
Author: Patrick Palka <ppa...@redhat.com>
Date:   Mon Apr 3 18:49:37 2023 -0400

    c++: ICE with loopy var tmpl auto deduction [PR109300]

    Now that we resolve non-dependent variable template-ids ahead of time,
    cp_finish_decl needs to handle a new invalid situation: we can end up
    trying to instantiate a variable template with deduced type before we
    fully parsed its initializer.

            PR c++/109300

    gcc/cp/ChangeLog:

            * decl.cc (cp_finish_decl): Diagnose ordinary auto deduction
            with no initializer, instead of asserting.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp1y/var-templ79.C: New test.

Reply via email to