Re: Private virtual function overridden as public compiles and runs (bug?)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/14/2013 05:30 AM, Georger Araujo wrote:
The following program compiles and runs - is it correct behavior? I
read §11.5 in the January 2012 working draft but couldn't reach a
conclusion.

Yes, it is the correct behavior according to the C++ standard. I think it's broken, but as it's in the standard, there's little we can do about it.

Do we issue a warning?  We proably should.

--
Florian Weimer / Red Hat Product Security Team




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux