https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119871
Bug ID: 119871 Summary: Function parameters should never be name-independent Product: gcc Version: 16.0 Status: UNCONFIRMED Keywords: accepts-invalid Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: pinskia at gcc dot gnu.org Blocks: 94404 Target Milestone: --- >From http://wg21.link/cwg3005 . This means: ``` void f(int _) { int _; // error } ``` is invalid code because _ as a function paramater is not an name-independent but rather an actual name of the function paramater so the use of _ below is also a name because it is named already. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94404 [Bug 94404] [meta-bug] C++ core issues