...
In this noncompliant code example, the member initializer list for C::C()
attempts to initialize SomeVal
someVal
first and then to initialize dependsOnSomeVal
to a value dependent on someVal
. Because the declaration order of the member variables does not match the member initializer order, attempting to read the value of someVal
results in an unspecified value being stored into dependsOnSomeVal.
...