aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/constexpr.cc
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2022-09-15 22:55:50 +0200
committerJason Merrill <jason@redhat.com>2022-09-16 14:42:55 +0200
commit39dc66558e066e67fd40f21f53cee80989ae742d (patch)
tree787169f51691b944e9e84356dd5009b26faae1a1 /gcc/cp/constexpr.cc
parent4c156ead37c0660b11e1f055bcba159ce806c5c8 (diff)
downloadgcc-39dc66558e066e67fd40f21f53cee80989ae742d.zip
gcc-39dc66558e066e67fd40f21f53cee80989ae742d.tar.gz
gcc-39dc66558e066e67fd40f21f53cee80989ae742d.tar.bz2
c++: member fn in omp loc list [PR106858]
this-f names a member function, which isn't an addressable lvalue. Give a helpful error instead of crashing. The first hunk makes the error range cover the whole expression. PR c++/106858 gcc/cp/ChangeLog: * parser.cc (cp_parser_omp_var_list_no_open): Pass the initial token location down. * semantics.cc (finish_omp_clauses): Check invalid_nonstatic_memfn_p. * typeck.cc (invalid_nonstatic_memfn_p): Handle null TREE_TYPE. gcc/testsuite/ChangeLog: * g++.dg/gomp/map-3.C: New test.
Diffstat (limited to 'gcc/cp/constexpr.cc')
0 files changed, 0 insertions, 0 deletions