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

--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Nathan Sidwell <nat...@gcc.gnu.org>:

https://gcc.gnu.org/g:9beb6d88effdab4209beb8bc5e4b8773317f1d33

commit r11-6741-g9beb6d88effdab4209beb8bc5e4b8773317f1d33
Author: Nathan Sidwell <nat...@acm.org>
Date:   Fri Jan 15 11:38:43 2021 -0800

    c++: Fix qualified array-type construction [PR 98538]

    This was an assert that was too picky.  The reason I had to alter
    array construction was that on stream in, we cannot dynamically determine
    a type's dependentness.  Thus on stream out of the 'problematic' types,
    we save the dependentness for reconstruction.  Fortunately the paths into
    cp_build_qualified_type_real from streamin with arrays do have the array's
    dependentess set as needed.

            PR c++/98538
            gcc/cp/
            * tree.c (cp_build_qualified_type_real): Propagate an array's
            dependentness to the copy, if known.
            gcc/testsuite/
            * g++.dg/template/pr98538.C: New.

Reply via email to