https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105734
Bug ID: 105734 Summary: Regression: Incorrect "error: invalid use of 'auto'" Product: gcc Version: 12.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: llvm at rifkin dot dev Target Milestone: --- The following code errors erroneously: https://godbolt.org/z/68vYYj8cc A more minimal reproducible example is here: https://godbolt.org/z/f75Yx7K57. Interestingly the error only manifests in conjunction with the explicit destructor call. This came up in conjunction with a library doing a lot of TMP shenanigans, I will try to make a more minimal standalone reproducible example.