https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122636
--- Comment #5 from Nathaniel Shead <nshead at gcc dot gnu.org> --- (In reply to d7d1cd from comment #4) > Am I correct in assuming that this example (https://godbolt.org/z/f85G1cd53) > has the same error? It's strange to see a warning about a function parameter > being a TU-local entity. How can it even be one? Yes, this is the same issue. A parameter is being considered a TU-local entity here because it has no linkage, but we shouldn't really call this a reference of it. I'll probably have some spare time to look at this bug on the weekend.
