]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: improve template-id location
authorJason Merrill <jason@redhat.com>
Sat, 30 Apr 2022 09:45:02 +0000 (05:45 -0400)
committerJason Merrill <jason@redhat.com>
Mon, 2 May 2022 22:05:06 +0000 (18:05 -0400)
commit6f78c52d4bd08caec4f3b11ad2302e7cde044c1e
treeb4ae10b84de404f1e80ce51c85b1170c72dcf87b
parentdcb4bd0789d13dd4d07428bff712d01d3ea71ebe
c++: improve template-id location

On PR102629 I noticed that we were giving the entire lambda as the location
for this template-id.

gcc/cp/ChangeLog:

* pt.cc (tsubst_copy_and_build) [TEMPLATE_ID_EXPR]: Copy location.
(do_auto_deduction): Use expr location.

gcc/testsuite/ChangeLog:

* g++.dg/cpp2a/lambda-pack-init7.C: Check column number.
gcc/cp/pt.cc
gcc/testsuite/g++.dg/cpp2a/lambda-pack-init7.C