diff options
author | Jason Merrill <jason@redhat.com> | 2019-11-06 19:50:19 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2019-11-06 19:50:19 -0500 |
commit | 74fa38297b22d826f53f0b1894a1847eca3503dc (patch) | |
tree | 80dd4fe6801052da50c979452f37253d83c5496b /gcc/c/c-parser.c | |
parent | 951c6f3dd975d795adc409da1a1477b5229199ae (diff) | |
download | gcc-74fa38297b22d826f53f0b1894a1847eca3503dc.zip gcc-74fa38297b22d826f53f0b1894a1847eca3503dc.tar.gz gcc-74fa38297b22d826f53f0b1894a1847eca3503dc.tar.bz2 |
Implement D1907R1 "structural type".
ISO C++ paper D1907R1 proposes "structural type" as an alternative to the
current notion of "strong structural equality", which has various problems.
I'm implementing it to give people a chance to try it.
The build_base_field changes are to make it easier for structural_type_p to
see whether a base is private or protected.
* tree.c (structural_type_p): New.
* pt.c (invalid_nontype_parm_type_p): Use it.
* class.c (build_base_field_1): Take binfo. Copy TREE_PRIVATE.
(build_base_field): Pass binfo.
From-SVN: r277902
Diffstat (limited to 'gcc/c/c-parser.c')
0 files changed, 0 insertions, 0 deletions