Re: [PATCH] c++: partial ordering with memfn pointer cst [PR108104]

2022-12-15 Thread Jason Merrill via Gcc-patches
On 12/14/22 19:01, Patrick Palka wrote: Here we're triggering an overzealous assert in unify during partial ordering since the member function pointer constants are represented as ordinary CONSTRUCTORs (with TYPE_PTRMEMFUNC_P TREE_TYPE) but the assert expects only COMPOUND_LITERAL_P constructors.

[PATCH] c++: partial ordering with memfn pointer cst [PR108104]

2022-12-14 Thread Patrick Palka via Gcc-patches
Here we're triggering an overzealous assert in unify during partial ordering since the member function pointer constants are represented as ordinary CONSTRUCTORs (with TYPE_PTRMEMFUNC_P TREE_TYPE) but the assert expects only COMPOUND_LITERAL_P constructors. Bootstrapped and regtested on x86_64-pc-