https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127066
Thomas Schwinge <tschwinge at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2026-09-24
Ever confirmed|0 |1
CC| |tschwinge at gcc dot gnu.org
Target|sparc*-*-* x86_64-*-* |sparc*-*-* x86_64-*-*
| |nvptx-*-*
--- Comment #3 from Thomas Schwinge <tschwinge at gcc dot gnu.org> ---
Also for '--target=nvptx-none'.
Before vs. after 'diff':
[...]
[...]/g++.old-deja/g++.pt/ptrmem6.C:18:6: note: template argument
deduction/substitution failed:
[...]/g++.old-deja/g++.pt/ptrmem6.C:25:5: error: '&B::j' is not a valid
template argument for type 'int A::*'
[...]/g++.old-deja/g++.pt/ptrmem6.C:25:5: note: because it is a member of
'B'
+[...]/g++.old-deja/g++.pt/ptrmem6.C:26:27: error: no matching function for
call to 'g<&A::f>()'
+[...]/g++.old-deja/g++.pt/ptrmem6.C:26:27: note: there is 1 candidate
+[...]/g++.old-deja/g++.pt/ptrmem6.C:16:6: note: candidate 1:
'template<void (A::* <anonymous>)()> void g()'
+[...]/g++.old-deja/g++.pt/ptrmem6.C:16:6: note: template argument
deduction/substitution failed:
+[...]/g++.old-deja/g++.pt/ptrmem6.C:26:5: error: '&A::f' is not a valid
template argument for type 'void (A::*)()'
+[...]/g++.old-deja/g++.pt/ptrmem6.C:26:5: note: it must be a
pointer-to-member of the form '&X::Y'
[...]/g++.old-deja/g++.pt/ptrmem6.C:28:27: error: no matching function for
call to 'g<A::f>()'
[...]/g++.old-deja/g++.pt/ptrmem6.C:28:27: note: there is 1 candidate
[...]/g++.old-deja/g++.pt/ptrmem6.C:16:6: note: candidate 1:
'template<void (A::* <anonymous>)()> void g()'
[...]