aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/interface.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2020-07-04 05:45:01 -0400
committerGiuliano Belinassi <giuliano.belinassi@usp.br>2020-08-17 13:17:16 -0300
commitba1b4e36d910905f01bd3c26d95a9c62b7a939c5 (patch)
treef1def3cf4faf093b20ebbf8c8bbe7ecb3cb4ebff /gcc/fortran/interface.c
parentf66b2b5cf1a9d192fcbbbe16233a8e67f70a4592 (diff)
downloadgcc-ba1b4e36d910905f01bd3c26d95a9c62b7a939c5.zip
gcc-ba1b4e36d910905f01bd3c26d95a9c62b7a939c5.tar.gz
gcc-ba1b4e36d910905f01bd3c26d95a9c62b7a939c5.tar.bz2
c++: Support non-type template parms of union type.
Another thing newly allowed by P1907R1. The ABI group has discussed representing unions with designated initializers, and has separately specified how to represent designators; this patch implements both. gcc/cp/ChangeLog: * tree.c (structural_type_p): Allow unions. * mangle.c (write_expression): Express unions with a designator. libiberty/ChangeLog: * cp-demangle.c (cplus_demangle_operators): Add di, dx, dX. (d_expression_1): Handle di and dX. (is_designated_init, d_maybe_print_designated_init): New. (d_print_comp_inner): Use d_maybe_print_designated_init. * testsuite/demangle-expected: Add designator tests. gcc/testsuite/ChangeLog: * g++.dg/cpp2a/nontype-class-union1.C: New test.
Diffstat (limited to 'gcc/fortran/interface.c')
0 files changed, 0 insertions, 0 deletions