[Bug c++/95158] [8/9 Regression] Templates + Diamond Inheritance + Final = Pure Virtual Function Call

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jun 4 19:16:05 GMT 2020


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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[10/11 Regression]          |[8/9 Regression] Templates
                   |Templates + Diamond         |+ Diamond Inheritance +
                   |Inheritance + Final = Pure  |Final = Pure Virtual
                   |Virtual Function Call       |Function Call
   Target Milestone|10.2                        |8.5
      Known to work|9.3.0                       |

--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> ---
If I change bar to call foo on a local Derived variable instead of 'this', it
breaks back to GCC 8.  Fixed so far for 10.2/11.


More information about the Gcc-bugs mailing list