Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 8 years ago

Language

Compiler

Options

Author

anonymous

over 8 years ago

$
prog.cc:15:20: error: non-static member 'a' found in multiple base-class subobjects of type 'A':
    struct D -> struct B -> struct A
    struct D -> struct C -> struct A
    std::cout << d.a << '\n';
                   ^
prog.cc:5:9: note: member found by ambiguous name lookup
    int a = 1;
        ^
1 error generated.
Exit Code:
1