Re: [PATCH] Fix behavior of using enum in dependent contexts [PR105787]

2022-06-06 Thread Jason Merrill via Gcc-patches
On 6/6/22 15:39, Michael Colavita via Gcc-patches wrote: Per #105787, "using enum" in a dependent context leads to an ICE. This is because the type substitution logic doesn't properly juggle the context and abstract origin for CONST_DECLs introduced via using enum. When we are performing type

[PATCH] Fix behavior of using enum in dependent contexts [PR105787]

2022-06-06 Thread Michael Colavita via Gcc-patches
Per #105787, "using enum" in a dependent context leads to an ICE. This is because the type substitution logic doesn't properly juggle the context and abstract origin for CONST_DECLs introduced via using enum. When we are performing type substitution on the CONST_DECL, we want to do so in the