diff options
author | Jason Merrill <jason@redhat.com> | 2020-07-04 05:45:01 -0400 |
---|---|---|
committer | Giuliano Belinassi <giuliano.belinassi@usp.br> | 2020-08-17 13:17:16 -0300 |
commit | ba1b4e36d910905f01bd3c26d95a9c62b7a939c5 (patch) | |
tree | f1def3cf4faf093b20ebbf8c8bbe7ecb3cb4ebff /gcc/fortran/interface.c | |
parent | f66b2b5cf1a9d192fcbbbe16233a8e67f70a4592 (diff) | |
download | gcc-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