https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121552
--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jakub Jelinek <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:91b5fc4ae2e5c8693cc0b619562f15f90c0fdfaa commit r16-3226-g91b5fc4ae2e5c8693cc0b619562f15f90c0fdfaa Author: Jakub Jelinek <ja...@redhat.com> Date: Fri Aug 15 22:37:42 2025 +0200 c++: Add testcases for the defarg part of P1766R1 [PR121552] The following patch adds some testcases for the default argument (function and template) part of the paper, making sure we diagnose multiple defargs in the same TU and when visible in modules and DTRT when some aren't visible and some are visible and they are equal. Not testing when they are different since that is IFNDR. 2025-08-15 Jakub Jelinek <ja...@redhat.com> PR c++/121552 * g++.dg/parse/defarg21.C: New test. * g++.dg/template/defarg24.C: New test. * g++.dg/modules/default-arg-4_a.C: New test. * g++.dg/modules/default-arg-4_b.C: New test. * g++.dg/modules/default-arg-5_a.C: New test. * g++.dg/modules/default-arg-5_b.C: New test.