fix issue 7883 - Compiler segfaults with double inheritance and function
contract