This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/64794] New: 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

            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 ;
} ;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]