https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118306
Bug ID: 118306 Summary: Accepts invalid ctor with * in front Product: gcc Version: 14.2.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 Target Milestone: --- Forwarded from PR 118304 for the accepts invalid issue. which is related to but not the same as ICE and it is not a regression either. This is invalid code but it is currently accepted: ``` struct A { *A(); }; ```