Re: [PATCH] c++: Handle SCOPE_REF in contains_placeholder_p [PR117158]

2024-11-01 Thread Jason Merrill
On 11/1/24 5:07 AM, Simon Martin wrote: Since r10-3793-g1a37b6d9a7e57c, we ICE upon the following valid code with -std=c++17 and above === cut here === struct Base { unsigned int *intarray; }; template struct Sub : public Base { bool Get(int i) { return (Base::intarray[++i] == 0);

[PATCH] c++: Handle SCOPE_REF in contains_placeholder_p [PR117158]

2024-11-01 Thread Simon Martin
Since r10-3793-g1a37b6d9a7e57c, we ICE upon the following valid code with -std=c++17 and above === cut here === struct Base { unsigned int *intarray; }; template struct Sub : public Base { bool Get(int i) { return (Base::intarray[++i] == 0); } }; === cut here === The problem is that fr