https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64794
Bug ID: 64794 Summary: GCC failed at virtual function with "override" trailing return type name, followed by override virt-specifier Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: boostcpp at gmail dot com GCC failed at virtual function with "override" trailing return type name, followed by override virt-specifier. Following code should be well-formed. struct override { } ; struct Base { virtual auto f() -> override ; } ; struct Derived : Base { // GCC issues error: two or more data types in declaration of 'type name' auto f() -> override override ; } ;