title: Pointing dereference inside a struct error
body: <p>i have a function to create a circular list, i am having issues compiling, not sure if it is syntax, appreciate if someone can help.</p>
  
  <pre><code>    void CreateCircularList(struct node** listRef, struct node** tailRef)
  
      {    
      Push(&amp;*listRef, "String 1");
      *tailRef=*listRef;
      Push(&amp;*listRef, "String 2");
      Push(&amp;*listRef, "String 3");
      Push(&amp;*listRef, "String 4");
  
      *(tailRef-&gt;next)=*listRef;
  
      } 
  </code></pre>
  
  <p>the compiler flags an error in the last line:</p>
  
  <blockquote>
    <p>"Member reference base type 'struct node*' is not a structure or
    union"</p>
  </blockquote>
  
  <p>Any ideas why ?  thanks</p>