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++/50811] G++ rejects class-virt-specifier if class-head-name includes nested-name-specifier


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50811

--- Comment #1 from Ville Voutilainen <ville.voutilainen at gmail dot com> 2011-10-20 23:26:57 UTC ---
Oh my.

struct C
{
        int x;
};

int main()
{
        struct C final {};
        int y = final.x;
}

says 
error: âfinalâ was not declared in this scope

When it's just struct C final; it works fine.


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