https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113830
--- Comment #4 from Bo Wang <wangbopku15 at gmail dot com> --- (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.