https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101078
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|11.2 |9.5 CC| |jakub at gcc dot gnu.org Summary|[11/12 Regression] Rejected |[9/10/11/12 Regression] |code since |Rejected code since |r12-1272-gf07edb5d7f3e7721 |r12-1272-gf07edb5d7f3e7721 --- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Indeed. When the f call is in a method of B rather than of a nested class, it works fine and when it isn't in a template too. Extending to 9/10 too because of the B::f() case but should be kept P1 because the f() case is a regression since 11.1.