Re: [PATCH 05/15] c++: Fix tree_contains_struct for TRAIT_EXPR

2024-11-05 Thread Jason Merrill
On 11/3/24 5:22 PM, Lewis Hyatt wrote: CODE_CONTAINS_STRUCT () currently reports that a TRAIT_EXPR contains a TS_EXP struct, but it does not actually start with a TS_EXP as an initial sequence. In modules.cc, when we stream out a tree, we explicitly check for the TS_EXP case and call note_locatio

[PATCH 05/15] c++: Fix tree_contains_struct for TRAIT_EXPR

2024-11-03 Thread Lewis Hyatt
CODE_CONTAINS_STRUCT () currently reports that a TRAIT_EXPR contains a TS_EXP struct, but it does not actually start with a TS_EXP as an initial sequence. In modules.cc, when we stream out a tree, we explicitly check for the TS_EXP case and call note_location(t->exp.locus) if so. Currently, this ac