Re: [PATCH] c++: Don't ICE to build private access error message [PR116323]

2024-09-12 Thread Simon Martin
On 11 Sep 2024, at 20:57, Jason Merrill wrote: > On 9/11/24 7:26 AM, Simon Martin wrote: >> We currently ICE upon the following code while building the "[...] is >> private within this context" error message >> >> === cut here === >> class A { enum Enum{}; }; >> template class Alloc> >> class B :

Re: [PATCH] c++: Don't ICE to build private access error message [PR116323]

2024-09-11 Thread Jason Merrill
On 9/11/24 7:26 AM, Simon Martin wrote: We currently ICE upon the following code while building the "[...] is private within this context" error message === cut here === class A { enum Enum{}; }; template class Alloc> class B : private Alloc, private A {}; template class Alloc> int B::foo (Enum

[PATCH] c++: Don't ICE to build private access error message [PR116323]

2024-09-11 Thread Simon Martin
We currently ICE upon the following code while building the "[...] is private within this context" error message === cut here === class A { enum Enum{}; }; template class Alloc> class B : private Alloc, private A {}; template class Alloc> int B::foo (Enum m) { return 42; } === cut here === The pr