title: C++ HLS Synthesis Warnings
body: <p>When I try to sythnise using the Vivado HLS, I get this errors for the same line:</p>
  
  <blockquote>
    <p><strong>CRITICAL WARNING: [SYNCHK 200-43</strong>] pcd_triangulation/pcd_triangulation.cpp:156: use or assignment of a
    non-static pointer 'current.0.i.reg2mem' (this pointer may refer to
    different memory locations).</p>
    
    <p><strong>CRITICAL WARNING: [SYNCHK 200-11]</strong> pcd_triangulation/pcd_triangulation.cpp:156: Constant 'start' has an
    unsynthesizable type 'lass.triangle.2.28.31 = type { [3 x
    �lass.triangle.2.28.3...' (possible cause(s): pointer to pointer or
    global pointer).</p>
    
    <p><strong>CRITICAL WARNING: [SYNCHK 200-11]</strong> pcd_triangulation/pcd_triangulation.cpp:156: Constant 'start' has an
    unsynthesizable type '^lass.triangle.2.28.31 = type { [3 x
    �lass.triangle.2.28.3...' (possible cause(s): structure variable
    cannot be decomposed due to (1) unsupported type conversion; (2)
    memory copy operation; (3) function pointer used in struct; (4)
    unsupported pointer comparison).</p>
    
    <p><strong>CRITICAL WARNING: [SYNCHK 200-42]</strong> pcd_triangulation/pcd_triangulation.cpp:156: pointer comparison is not
    supported.</p>
  </blockquote>
  
  <p>The code is in C++. So this is the code which gives the warnings above:</p>
  
  <pre><code>if(start-&gt;child[0]==NULL &amp;&amp; start-&gt;child[1]==NULL &amp;&amp; start-&gt;child[2]==NULL)
  </code></pre>
  
  <p><code>start</code> is a global pointer to class (<code>triangle *start</code>) and <code>child[i]</code> is an array points to the same class inside the class (member)(<code>triangle *child[3]</code>).</p>
  
  <pre><code>class triangle {
     public:
      triangle *child[3];
      ...
  }
  
  triangle *start;
  
  inline triangle *mylocate(int p) {
      if (start-&gt;child[0] == NULL &amp;&amp; start-&gt;child[1] == NULL &amp;&amp;
          start-&gt;child[2] == NULL) {
          return start;
  
          ...
      }
  }
  </code></pre>
  
  <p>Can anyone help me to solve these issues?</p>