https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85739
ensadc at mailnesia dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ensadc at mailnesia dot com --- Comment #4 from ensadc at mailnesia dot com --- struct l { int k; }; template <int l::*> class b { }; template <const int l::*> class B { using e = int; }; template <int l::*i, const int l::*n> bool operator!=(B<n>, b<i>); bool bb = (B<&l::k>() != b<&l::k>()); also reproduces it.