aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/match.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2020-07-04 05:45:01 -0400
committerJason Merrill <jason@redhat.com>2020-07-10 08:36:50 -0400
commit6324c52bba490baa17b6001a6d555ff8bef939d6 (patch)
tree9ecdc93a57d1647235f79b7ae07f94e49f455aa8 /gcc/fortran/match.c
parent50f071d999374b6dd13149a31f505d4457c9de6d (diff)
downloadgcc-6324c52bba490baa17b6001a6d555ff8bef939d6.zip
gcc-6324c52bba490baa17b6001a6d555ff8bef939d6.tar.gz
gcc-6324c52bba490baa17b6001a6d555ff8bef939d6.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/match.c')
0 files changed, 0 insertions, 0 deletions