Re: [PATCH v2] c++: Fix miscompilation on array subscription with COND_EXPR as the array

2025-08-30 Thread Sirui Mu
> I've gone ahead and made these adjustments, and pushed the following: Really appreciate for that! I'll stick to this convention in the future. BTW, I don't have write access to the repository, so I could not push this commit after this patch gets approved. On 2025/8/30 03:52, Jason Merrill wr

Re: [PATCH v2] c++: Fix miscompilation on array subscription with COND_EXPR as the array

2025-08-29 Thread Jason Merrill
On 8/28/25 12:33 PM, Sirui Mu wrote: Hello, This is the 2nd version of the patch. Changes made since the initial version: - Implemented Jason's suggestions, move the declaration of first down. - Add signed-off-by to the commit. Please preserve the rationale in later revisions of the patc

[PATCH v2] c++: Fix miscompilation on array subscription with COND_EXPR as the array

2025-08-28 Thread Sirui Mu
Hello, This is the 2nd version of the patch. Changes made since the initial version: - Implemented Jason's suggestions, move the declaration of first down. - Add signed-off-by to the commit. Tested on x86_64-linux. Signed-off-by: Sirui Mu --- gcc/cp/typeck.cc |