gcc/libiberty/testsuite
Jason Merrill 6324c52bba 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.
2020-07-10 08:36:50 -04:00
..
d-demangle-expected libiberty: Handle @live attribute in D demangler. 2020-05-15 10:40:47 +02:00
demangle-expected c++: Support non-type template parms of union type. 2020-07-10 08:36:50 -04:00
demangler-fuzzer.c Update copyright years. 2020-01-01 12:51:42 +01:00
Makefile.in Update copyright years. 2020-01-01 12:51:42 +01:00
rust-demangle-expected
test-demangle.c Update copyright years. 2020-01-01 12:51:42 +01:00
test-expandargv.c Update copyright years. 2020-01-01 12:51:42 +01:00
test-pexecute.c Update copyright years. 2020-01-01 12:51:42 +01:00
test-strtol.c Update copyright years. 2020-01-01 12:51:42 +01:00