https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82640
Bug ID: 82640 Summary: gcc doesn't show errors on anonymous local variables Product: gcc Version: 7.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vanyacpp at gmail dot com Target Milestone: --- GCC compiles the following code: int main() { int (*); int (&)[-1]; auto const (&)[3]; } I believe the code is incorrect as the local variables are unnamed.