Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Duplicate fields from inherited classes shows wrong value. #356

Open
mistymntncop opened this issue Nov 6, 2024 · 0 comments
Open
Labels
Bug A report of unintended or broken behavior. Debugger Pertains to the debugger.

Comments

@mistymntncop
Copy link

mistymntncop commented Nov 6, 2024

Compiled with cl.exe version 19.28.29337.

class B {
    uint32_t blah = 0x11111111;
};
class C {
    uint32_t blah = 0x22222222;
};

class A : public B, public C {
    
};

int main(int argc, char *argv[]) {
    A *a = new A();
    
    return 0;
} 

image
In the case where a class inherits from 2 classes that share the same field name the debugger will erroneously show the first field value for both fields.

@mistymntncop mistymntncop changed the title [Bug] Duplicate fields from inherited class shows wrong value. [Bug] Duplicate fields from inherited classes shows wrong value. Nov 6, 2024
@ryanfleury ryanfleury added Bug A report of unintended or broken behavior. Debugger Pertains to the debugger. labels Nov 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A report of unintended or broken behavior. Debugger Pertains to the debugger.
Projects
None yet
Development

No branches or pull requests

2 participants