aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/trans-openmp.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2021-04-05 11:47:50 -0400
committerJason Merrill <jason@redhat.com>2021-05-14 12:11:12 -0400
commit2f1bb00ba340e53663651be7874011fd54e1d085 (patch)
treebb93915785935c106428d2d2a34463e19e235abf /gcc/fortran/trans-openmp.c
parent1ff863ab01640d181c3afb73c99701664efa7e7a (diff)
downloadgcc-2f1bb00ba340e53663651be7874011fd54e1d085.zip
gcc-2f1bb00ba340e53663651be7874011fd54e1d085.tar.gz
gcc-2f1bb00ba340e53663651be7874011fd54e1d085.tar.bz2
c++: simplify enclosing_instantiation_of [PR95870]
Comparing DECL_SOURCE_LOCATION like the GCC 11 patch for PR 95870 will also work for user-defined functions, if we update their location when instantiating. Another option would be to use LAMBDA_EXPR_REGEN_INFO for lambdas, but this way is even simpler. gcc/cp/ChangeLog: PR c++/95870 * pt.c (enclosing_instantiation_of): Just compare DECL_SOURCE_LOCATION. (regenerate_decl_from_template): Copy DECL_SOURCE_LOCATION.
Diffstat (limited to 'gcc/fortran/trans-openmp.c')
0 files changed, 0 insertions, 0 deletions