This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/MSP430F5659: Private Member Reference of a class has a null address

Part Number: MSP430F5659


Tool/software: TI C/C++ Compiler

I have a class with a private members that is a reference to an integer. When I attempt to initialize this reference in the class constructor, I discovered the address of the member is 0x000000. Has anyone seen this kind of thing before? The compiler quietly allows this and (TI v17.9.0.STS) gives no warnings or errors. Below is a screen shot that depicts a simple example that generates this problem. Note: Adding or removing the const qualifier to either the input variable or class member does not change the outcome.