[Bug c++/111803] Template deduction failure for baseclass member pointer with template data type

2023-10-13 Thread grbrown93 at sbcglobal dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111803 --- Comment #3 from grbrown --- (In reply to grbrown from comment #2) > From my tests though, removing the 'template' will allow it to > work, so I don't know if you're explanation is entirely correct. I.e. replace template void

[Bug c++/111803] Template deduction failure for baseclass member pointer with template data type

2023-10-13 Thread grbrown93 at sbcglobal dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111803 --- Comment #2 from grbrown --- (In reply to Andrew Pinski from comment #1) > Note clang also rejects this code for the same reason as GCC. > > Here is a reduced version which shows the difference between ICC/MSVC and > GCC/clang: > ``` >

[Bug c++/111803] Template deduction failure for baseclass member pointer with template data type

2023-10-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111803 --- Comment #1 from Andrew Pinski --- Note clang also rejects this code for the same reason as GCC. Here is a reduced version which shows the difference between ICC/MSVC and GCC/clang: ``` struct A { int data; }; struct B : A{}; struct