This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/64794] New: GCC failed at virtual function with "override" trailing return type name, followed by override virt-specifier
- From: "boostcpp at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 26 Jan 2015 04:50:00 +0000
- Subject: [Bug c++/64794] New: GCC failed at virtual function with "override" trailing return type name, followed by override virt-specifier
- Auto-submitted: auto-generated
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 ;
} ;