aboutsummaryrefslogtreecommitdiff
path: root/gcc/c/c-parser.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2019-11-06 19:50:19 -0500
committerJason Merrill <jason@gcc.gnu.org>2019-11-06 19:50:19 -0500
commit74fa38297b22d826f53f0b1894a1847eca3503dc (patch)
tree80dd4fe6801052da50c979452f37253d83c5496b /gcc/c/c-parser.c
parent951c6f3dd975d795adc409da1a1477b5229199ae (diff)
downloadgcc-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