[Bug c++/64794] GCC failed at virtual function with "override" trailing return type name, followed by override virt-specifier
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64794 Atul Sharma changed: What|Removed |Added CC||atulsharma406 at gmail dot com --- Comment #1 from Atul Sharma --- Created attachment 48645 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48645&action=edit compilation failure log This file contains the compilation failure statements
[Bug c++/64794] GCC failed at virtual function with "override" trailing return type name, followed by override virt-specifier
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64794 --- Comment #2 from Atul Sharma --- Is there any update on the issue I am facing this issue on the newer version of gcc(10.1.) as well Added the details of compilation failure as attachement I have been facing issue for the following mention code with the error /* main.cpp:11:17: error: two or more data types in declaration of 'type name' 11 | auto f() -> override override ; */ struct override { } ; struct base { virtual auto f() -> override ; } ; struct derived : base { auto f() -> override override ; } ; int main() { return 0; } -- This should not have caused compilation failure since override specifier is not a keyword and can be used to define a custom type