Re: [PATCH] c++: Member initializer list diagnostic locations [PR94024]

2020-08-03 Thread Jason Merrill via Gcc-patches
ng look OK after testing completes? OK. -- >8 -- Subject: [PATCH] c++: Member initializer list diagnostic locations [PR94024] This patch preserves the source locations of each node in a member initializer list so that during processing of the list we can set input_location appropriately

Re: [PATCH] c++: Member initializer list diagnostic locations [PR94024]

2020-08-03 Thread Patrick Palka via Gcc-patches
d attach it to a dummy > > EMPTY_CLASS_EXPR > > +within the TREE_TYPE of the list node. */ > > + TREE_TYPE (mem_initializer) = build0 (EMPTY_CLASS_EXPR, NULL_TREE); > > + SET_EXPR_LOCATION (TREE_TYPE (mem_initializer), > > +mak

Re: [PATCH] c++: Member initializer list diagnostic locations [PR94024]

2020-08-03 Thread Jason Merrill via Gcc-patches
On 8/3/20 10:14 AM, Patrick Palka wrote: This patch preserves the source locations of each node in a member initializer list so that during processing of the list we can set input_location appropriately for generally more accurate diagnostic locations. Since TREE_LIST nodes are tcc_exceptional,

[PATCH] c++: Member initializer list diagnostic locations [PR94024]

2020-08-03 Thread Patrick Palka via Gcc-patches
This patch preserves the source locations of each node in a member initializer list so that during processing of the list we can set input_location appropriately for generally more accurate diagnostic locations. Since TREE_LIST nodes are tcc_exceptional, they can't have source locations, so we ins