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

--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Nathaniel Shead <[email protected]>:

https://gcc.gnu.org/g:6a2e0ea5acfb88250ab78785456043f941f27ec2

commit r16-4672-g6a2e0ea5acfb88250ab78785456043f941f27ec2
Author: Nathaniel Shead <[email protected]>
Date:   Sun Oct 26 20:32:10 2025 +1100

    c++/modules: Propagate type of array with deduced size to its template
[PR122422]

    This is the same issue as solved in r16-1759-g98fd493db6216c for auto,
    but this time for arrays with size deduced from their initializers.

            PR c++/122422

    gcc/cp/ChangeLog:

            * decl.cc (maybe_deduce_size_from_array_init): Propagate type to
            corresponding TEMPLATE_DECL.

    gcc/testsuite/ChangeLog:

            * g++.dg/modules/merge-20.h: New test.
            * g++.dg/modules/merge-20_a.H: New test.
            * g++.dg/modules/merge-20_b.C: New test.

    Signed-off-by: Nathaniel Shead <[email protected]>
    Reviewed-by: Jason Merrill <[email protected]>
  • [Bug c++/122422] [16 rgression]... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to