https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124978

--- Comment #1 from Drea Pinski <pinskia at gcc dot gnu.org> ---
clang also rejects this code with:
```
<source>:28:30: error: implicit instantiation of undefined template
'TD<cw<42>>'
   28 | TD<decltype((&co)->*cvalue)> _;
      |                              ^
<source>:27:23: note: template is declared here
   27 | template<class> class TD;
      |                       ^
```

Reply via email to