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

--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <ja...@gcc.gnu.org>:

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

commit r10-6457-gfa0c6e297b22d5883857d0db4a6a8be0967cb16f
Author: Jason Merrill <ja...@redhat.com>
Date:   Tue Feb 4 18:49:16 2020 -0500

    c++: Fix SEGV with malformed constructor decl.

    In the testcase, since there's no declaration of T, ref_view(T) declares a
    non-static data member T of type ref_view, the same type as its enclosing
    class.  Then when we try to do C++20 aggregate class template argument
    deduction we recursively try to adjust the braced-init-list to match the
    template class definition until we run out of stack.

    Fixed by rejecting the template data member.

        PR c++/92593
        * decl.c (grokdeclarator): Reject field of current class type even
        in a template.

Reply via email to