title: clang++ : C++ requires a type specifier
body: <p>I can't get over this 'C++ requires a type specifier for all declarations' issue with clang++
  Please suggest to overcome this error using clang++.
  I greatly appreciate you, for taking look at it</p>
  
  <pre><code>:&gt;clang++ --version
  clang version 3.1 (tags/RELEASE_31/final)
  Target: x86_64-unknown-linux-gnu
  Thread model: posix
  
  
  :&gt;cat f.cpp
  main(int argc, char** argv)
  {
  int A;
  }
  
  
  
  :&gt; clang++ f.cpp
  f.cpp:1:1: error: C++ requires a type specifier for all declarations
  main(int argc, char** argv)
  ^~~~
  1 error generated.
  
  :&gt; clang++ f.cpp -std=gnu++98
  f.cpp:1:1: error: C++ requires a type specifier for all declarations
  main(int argc, char** argv)
  ^~~~
  1 error generated.
  
  
  :&gt; clang++ f.cpp -std=c++11
  f.cpp:1:1: error: C++ requires a type specifier for all declarations
  main(int argc, char** argv)
  ^~~~
  1 error generated.
  
  :&gt; clang++ f.cpp -std=c++0x
  f.cpp:1:1: error: C++ requires a type specifier for all declarations
  main(int argc, char** argv)
  ^~~~
  1 error generated.
  </code></pre>