title: IS reference to a reference illegal in C++？
body: <pre><code>int main(){
  int ival=1024;
  int &amp;refVal=ival;
  int &amp;refVal2=refVal;
  return 0;
  }
  </code></pre>
  
  <p>C++ Primer(5th edition) says
  "Because references are not objects, we may not define a reference to a reference."(Chinese 5th version says "不能定义引用的引用".meaning can't define
  a reference to a reference. )</p>
  
  <p>But I got the code above pass compilation.</p>
  
  <p>What's going on?</p>
  
  <p>Feel free to correct any errors(including my English skills)</p>