On 10/21/25 9:27 PM, Marek Polacek wrote:
On Tue, Oct 21, 2025 at 07:25:40PM +0200, Jakub Jelinek wrote:
Hi!
The following testcase is miscompiled, because a RAW_DATA_CST tree
node is shared by multiple CONSTRUCTORs and when the braced_list_to_string
function changes one to extend the RAW_DATA_CST over the single preceding
and single succeeding INTEGER_CST, it changes the RAW_DATA_CST in
the other CONSTRUCTOR where the elts around it are still present.
Fixed by tweaking a copy of it instead, like we handle it in other spots.
Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk/15.3?
LGTM.
Yes, OK.
Jason