https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102053
Bug ID: 102053 Summary: Invalid syntax of destructor call .~auto is accepted Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: fchelnokov at gmail dot com Target Milestone: --- This program with explicit destructor call is invalid: ``` int x = 1; int main() { x.~auto(); } ``` because of non-standard .~auto, but G++ accepts it.