[Bug c++/108104] ICE in unify, at cp/pt.c:24333 with template partial specialization and pointer to memeber function and nullptr
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Dec 14 18:39:29 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108104
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-valid-code
Summary|ICE in unify, at |ICE in unify, at
|cp/pt.c:24333 with template |cp/pt.c:24333 with template
|partial specialization |partial specialization and
| |pointer to memeber function
| |and nullptr
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Reduced testcase:
```
struct ss {
void h();
};
template <int, void (ss::*m)()> struct Fred {};
template <int state> struct Fred<state, nullptr> {};
Fred<1, &ss::h> f1;
```
More information about the Gcc-bugs
mailing list