title: Why doesn't GCC show any errors on an anonymous variable?
body: <p>I read <a href="https://stackoverflow.com/questions/33273550/why-does-int-compile-fine-in-c-but-not-in-c">this</a> question that explains how anonymous variables are invalid in C++.</p>
  
  <p>But the following program compiles without any warning or errors on GCC 7.2 (even with <code>-Wall</code>) - <a href="https://godbolt.org/g/mTpqL2" rel="nofollow noreferrer">demo</a>:</p>
  
  <pre><code>int main() {
      int (*); // anonymous variable?
  }
  </code></pre>
  
  <p>Here, this is apparently also an integer type anonymous variable. So, why GCC does not show any errors or warnings? Is this a GCC bug?</p>