diff options
author | Jason Merrill <jason@redhat.com> | 2016-11-09 15:02:50 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2016-11-09 15:02:50 -0500 |
commit | 4a826ca6feb3c7ec3ef6287214a3f2820222c97e (patch) | |
tree | 760d23d9253039365e07de038db17dfe9aada879 /gcc/fortran/interface.c | |
parent | ff1f317b3c1fdcfb061e20f3474f77c183189830 (diff) | |
download | gcc-4a826ca6feb3c7ec3ef6287214a3f2820222c97e.zip gcc-4a826ca6feb3c7ec3ef6287214a3f2820222c97e.tar.gz gcc-4a826ca6feb3c7ec3ef6287214a3f2820222c97e.tar.bz2 |
Implement P0127R2, Declaring non-type parameters with auto.
gcc/cp/
* cp-tree.h (enum auto_deduction_context): Add adc_unify.
* decl.c (grokdeclarator): Allow 'auto' in C++17 template non-type
parameter types.
* pt.c (do_auto_deduction): Add outer_targs parameter.
(convert_template_argument): Call do_auto_deduction. If adc_unify,
don't give up on dependent init.
(unify): Likewise. In C++17, walk into the type of a
TEMPLATE_PARM_INDEX.
(for_each_template_parm): Add any_fn parameter.
(struct pair_fn_data): Likewise.
(for_each_template_parm_r): Call it for any tree. In C++17, walk
into the type of a TEMPLATE_PARM_INDEX.
(zero_r, array_deduction_r, try_array_deduction): New.
(type_unification_real): Call try_array_deduction.
(get_partial_spec_bindings): Likewise.
gcc/c-family/
* c-cppbuiltin.c (c_cpp_builtins): Define __cpp_template_auto.
From-SVN: r242017
Diffstat (limited to 'gcc/fortran/interface.c')
0 files changed, 0 insertions, 0 deletions