Summary: | GCC failed at virtual function with "override" trailing return type name, followed by override virt-specifier | ||
---|---|---|---|
Product: | gcc | Reporter: | Ryou Ezoe <boostcpp> |
Component: | c++ | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | NEW --- | ||
Severity: | normal | CC: | atulsharma406, daniel.kruegler, webrown.cpp |
Priority: | P3 | Keywords: | rejects-valid |
Version: | 5.0 | ||
Target Milestone: | --- | ||
See Also: |
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84581 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91760 |
||
Host: | Target: | ||
Build: | Known to work: | ||
Known to fail: | Last reconfirmed: | 2021-12-08 00:00:00 | |
Attachments: | compilation failure log |
Description
Ryou Ezoe
2015-01-26 04:50:00 UTC
Created attachment 48645 [details]
compilation failure log
This file contains the compilation failure statements
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 |