aboutsummaryrefslogtreecommitdiff
path: root/gcc/combine.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2019-11-26 22:14:33 -0500
committerJason Merrill <jason@gcc.gnu.org>2019-11-26 22:14:33 -0500
commit6821245b3fd9e392ca56dfab4a4921a59ffa234b (patch)
treefbf6664ddf8b75e5751be33ff9a1987da6c3854e /gcc/combine.c
parent88b34a4811a0a5237138bbd6700202c2f3569c7d (diff)
downloadgcc-6821245b3fd9e392ca56dfab4a4921a59ffa234b.zip
gcc-6821245b3fd9e392ca56dfab4a4921a59ffa234b.tar.gz
gcc-6821245b3fd9e392ca56dfab4a4921a59ffa234b.tar.bz2
Remember the location of a variable template-id.
I noticed that tsubst of a TEMPLATE_ID_EXPR was losing the location information from its EXPR_LOCATION. Then I noticed that cxx_eval_constant_expression was also throwing away location information for variable references. * pt.c (tsubst_copy_and_build) [TEMPLATE_ID_EXPR]: Remember the location of a variable template-id. * constexpr.c (cxx_eval_constant_expression): Get expr location before stripping location wrappers. (non_const_var_error): Take location argument. From-SVN: r278755
Diffstat (limited to 'gcc/combine.c')
0 files changed, 0 insertions, 0 deletions