aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/parser.cc
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2024-09-15 16:02:13 +0200
committerJason Merrill <jason@redhat.com>2024-09-15 17:47:28 +0200
commit5ef73ba1cc17b8893ad9a4e95f9cd191dbc0bfa3 (patch)
tree648981229c184657b8d41abfb3612416cb1fa136 /gcc/cp/parser.cc
parent2af87d98e66e57d51f36220de983eff44bae98c8 (diff)
downloadgcc-5ef73ba1cc17b8893ad9a4e95f9cd191dbc0bfa3.zip
gcc-5ef73ba1cc17b8893ad9a4e95f9cd191dbc0bfa3.tar.gz
gcc-5ef73ba1cc17b8893ad9a4e95f9cd191dbc0bfa3.tar.bz2
c++: conversion location
It seems more useful for a conversion to have the location of the source expression rather than the enclosing expression, such as a call that might convert multiple arguments in different ways. As a result, in srcloc17.C the recorded location of 'e' when copy-initialized became that of the initializer rather than the variable, since the semantic was to convert the initializer (at its location) and then initialize the variable from the resulting prvalue. If we instead direct-initialize the variable, the location of the constructor call is that of the variable. gcc/cp/ChangeLog: * call.cc (convert_like_internal) [ck_user]: Use iloc_sentinel. gcc/testsuite/ChangeLog: * g++.dg/cpp2a/srcloc17.C: Adjust initialization.
Diffstat (limited to 'gcc/cp/parser.cc')
0 files changed, 0 insertions, 0 deletions