<span style="font-family:Verdana, sans-serif"><pre style="font-size:medium;font-family:monospace;white-space:pre-wrap;width:50em">for example:

template <int N>
class T {
public:
  int V;
};

T<4> test(T<4> a[4][8]) {
  return a[3][3];
}
</pre><div><br></div><div>in LLVM23 release, it will crash llvm-gcc,</div><div><pre style="font-size:medium;font-family:monospace;white-space:pre-wrap;width:50em">test.cpp: In function \u2018T<4> test(T<4> (*)[8])\u2019:
test.cpp:7: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:<a href="http://llvm.org/bugs/" style="color:rgb(0, 51, 153)" target="_blank">http://llvm.org/bugs/</a>> for instructions.</pre><pre style="font-size:medium;font-family:monospace;white-space:pre-wrap;width:50em">
<br></pre><pre style="font-size:medium;font-family:monospace;white-space:pre-wrap;width:50em">in TOT llvm-gcc (r108122)</pre><pre style="font-size:medium;font-family:monospace;white-space:pre-wrap;width:50em">it can NOT pass syntax check:</pre>
<pre style="width:50em"><span style="white-space:pre-wrap;font-size:medium">test.cpp: In function '8T<4> test(T<4> (*)[8])':
test.cpp:7: error: invalid use of incomplete type 'class T<4>'
test.cpp:2: error: declaration of 'class T<4>'</span></pre><pre style="width:50em"><span style="white-space:pre-wrap;font-size:medium"><br></span></pre>
<pre style="width:50em"><span style="white-space:pre-wrap;font-size:medium">Who can help explain the reason? How can we get around the issue?</span></pre><pre style="width:50em"><span style="white-space:pre-wrap;font-size:medium">Thanks.</span></pre>
</div></span>