title: Object without code and One Definition Rule
body: <p>Is ODR about "code in the object has to have one definition" since linker will choose one code randomly, so if there is no confusing code, then no problem even the object definition is different?</p>
  
  <p>Examples:</p>
  
  <p>1.cpp</p>
  
  <pre><code>struct SA{
      int i;
      float f;   
  };
  </code></pre>
  
  <p>2.cpp</p>
  
  <pre><code>struct SA{
      long i;
      double f;
      int j;
  };
  </code></pre>
  
  <p>(1) Is this considered ODR violated by the standard?
  (2) Will this ever have any problem if they are only used locally? </p>