https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113830
--- Comment #6 from Marek Polacek <mpolacek at gcc dot gnu.org> --- (In reply to Bo Wang from comment #4) > (In reply to Marek Polacek from comment #2) > > Bug 66900 is somewhat related in that we also allow int::j. > > I believe these two bugs have different root causes. Bug 113830 should be > due to not instantiating default arguments inside the template function, > especially in instantiating a local class. While Bug 66900 does not have > this issue. Yes, I'm saying they are related, not dups.