cp-tree.h (class iloc_sentinel): New.
authorJason Merrill <jason@redhat.com>
Fri, 27 Sep 2019 18:19:55 +0000 (14:19 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 27 Sep 2019 18:19:55 +0000 (14:19 -0400)
commitc872f1506d46ceba10776d0ebc86b4126273a419
tree2a0a2e3ea4616da4030026f5092c505936d412e3
parent975d043ff6b6f8a9e9ff0be799701fc1d842bb83
cp-tree.h (class iloc_sentinel): New.

* cp-tree.h (class iloc_sentinel): New.

We didn't already have a sentinel for input_location, and while
temp_override would work, it would also happily set input_location to 0,
which breaks things that try to look up the associated filename.

* decl.c (grokdeclarator, finish_enum_value_list): Use it.
* mangle.c (mangle_decl_string): Use it.
* pt.c (perform_typedefs_access_check): Use it.

From-SVN: r276191
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/mangle.c
gcc/cp/pt.c