https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125729
--- Comment #8 from Boning Chen <berningchen at gmail dot com> ---
(In reply to Boning Chen from comment #7)
> Is it feasible to simply add this handling directly into write_prefix after
> handling SPLICE_SCOPE?
>
> if (TREE_CODE (node) == FUNCTION_DECL)
> {
> write_nested_name(node);
> return;
> }
No, it doesn't work for this example:
template <decltype(^^void) type> struct Error
{
Error() {}
};
consteval auto fun(int) { using Type = int; return ^^Type; }
consteval auto fun(double) { using Type = int; return ^^Type; }
Error<fun(1)> c{};
Error<fun(1.0)> d{};