public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/64901] New: Overriding final function defined out of line does not lead to an error
@ 2015-02-02 14:48 kaballo86 at hotmail dot com
  2015-02-02 14:49 ` [Bug c++/64901] C++11 regression, overriding " ville.voutilainen at gmail dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: kaballo86 at hotmail dot com @ 2015-02-02 14:48 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64901

            Bug ID: 64901
           Summary: Overriding final function defined out of line does not
                    lead to an error
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: kaballo86 at hotmail dot com

It was reported by talin over at ##C++ that the following snippet does not
result in a compilation error as expected:

    struct Plant {
      virtual void speak() final;
    };

    void Plant::speak(){}

    struct Flower :  Plant {
      void speak(){}
    };

    int main() {}

The issue can be reproduced with gcc-4.9.0 and upwards, and it only happens
when `Plant::speak` is defined out-of-line.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-02-04 15:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-02 14:48 [Bug c++/64901] New: Overriding final function defined out of line does not lead to an error kaballo86 at hotmail dot com
2015-02-02 14:49 ` [Bug c++/64901] C++11 regression, overriding " ville.voutilainen at gmail dot com
2015-02-02 14:52 ` [Bug c++/64901] [4.9/5 Regression] " ville.voutilainen at gmail dot com
2015-02-03  2:50 ` jason at gcc dot gnu.org
2015-02-04 15:39 ` paolo at gcc dot gnu.org
2015-02-04 15:41 ` paolo.carlini at oracle dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).