title: is there any circumstance under which valid C code will not compile properly using g++
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1201593/c-subset-of-c-where-not-examples">&ldquo;C subset of C++&rdquo; -&gt; Where not ? examples?</a>  </p>
  </blockquote>
  
  
  
  <p>I am aware that C is a subset of C++ (i.e. there does not exist valid C code that is not valid C++ code).  My question is whether <code>g++</code> is completely compatible with all C code.  For example, will</p>
  
  <pre><code>g++ -o testing test.c
  </code></pre>
  
  <p>produce an identical binary to </p>
  
  <pre><code>gcc -o testing test.c
  </code></pre>
  
  <p>in all circumstances?</p>
  
  <p>More specifically, if they do not always create identical binaries, is there any reason that that could be a problem?  Is it safe to always use <code>g++</code> if I'm not sure about the code?</p>