aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/trans-openmp.cc
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2022-01-20 09:18:45 -0500
committerJason Merrill <jason@redhat.com>2022-01-20 15:23:43 -0500
commitcc01cd9397fe99e707bcc5b98bb33d807ba610d7 (patch)
tree6712a6c9d974d8e159226230652b802229bee605 /gcc/fortran/trans-openmp.cc
parent30b38394b482ce894d9bc81731a0eea8711f4587 (diff)
downloadgcc-cc01cd9397fe99e707bcc5b98bb33d807ba610d7.zip
gcc-cc01cd9397fe99e707bcc5b98bb33d807ba610d7.tar.gz
gcc-cc01cd9397fe99e707bcc5b98bb33d807ba610d7.tar.bz2
c++: designator for base class member [PR101405]
A C++20 designator must name a direct non-static member of the class; in this case it names a member of a base class, and we should give an error instead of crashing. PR c++/101405 gcc/cp/ChangeLog: * decl.cc (reshape_init_class): Reject designator for a member of another class. gcc/testsuite/ChangeLog: * g++.dg/cpp2a/desig20.C: New test.
Diffstat (limited to 'gcc/fortran/trans-openmp.cc')
0 files changed, 0 insertions, 0 deletions