title: g++ 'nullptr' was not declared in this scope
body: <p>I'm using gcc-4.7.1 on windows 8 Release Preview with git-bash.</p>
  
  <pre><code>$ g++ -v
  Using built-in specs.
  COLLECT_GCC=c:\Users\nikhil bhardwaj\mingw64\bin\g++.exe
  COLLECT_LTO_WRAPPER=c:/users/nikhil bhardwaj/mingw64/bin/../libexec/gcc/x86_64-w
  64-mingw32/4.7.1/lto-wrapper.exe
  Target: x86_64-w64-mingw32
  Configured with: /home/drangon/work/mingw-w64-dgn/source/gcc/configure --host=x8
  6_64-w64-mingw32 --target=x86_64-w64-mingw32 --disable-nls --enable-languages=c,
  c++,objc,obj-c++ --with-gmp=/home/drangon/work/mingw-w64-dgn/build/for_target --
  enable-twoprocess --disable-libstdcxx-pch --disable-win32-registry --prefix=/hom
  e/drangon/work/mingw-w64-dgn/target --with-sysroot=/home/drangon/work/mingw-w64-
  dgn/target
  Thread model: win32
  gcc version 4.7.1 20120524 (prerelease) (GCC)
  </code></pre>
  
  <p>When I try to compile a small code snippet,</p>
  
  <pre><code>using namespace std;
  struct node
  {
      int data;
      node *left, *right;
  };
  node *newNode(int data)
  {
      node *node = new (struct node);
      node-&gt;data = data;
      node-&gt;left = nullptr;
      node-&gt;right = NULL;
      return node;
  }
  </code></pre>
  
  <p>I get this error,</p>
  
  <pre><code>$ g++ -I../includes bst.cpp
  bst.cpp: In function 'node* newNode(int)':
  bst.cpp:13:18: error: 'nullptr' was not declared in this sc
  bst.cpp:14:19: error: 'NULL' was not declared in this scope
  </code></pre>
  
  <p>I'm not able to use either <code>NULL</code> or <code>nullptr</code>, do I need to include some header files?</p>