structure in template class
<p>sample code is as follow:</p>

<pre><code>struct TEMP
{
    int j;
    TEMP()
    {
     j = 0;
    }
};

template&lt;typename T&gt;
class classA
{
    struct strA
    {
        long i;
        strA():i(0) {}
    };
    static strA obj_str;
    classA();
};

template&lt;typename T&gt;
classA&lt;T&gt;::classA()
{}

template&lt;typename T&gt; 
classA&lt;TEMP&gt;::strA classA&lt;TEMP&gt;::obj_str;

int main()
{
   return 0;
}
</code></pre>

<p>while compiling this code, I am getting following error:</p>

<blockquote>
  <p>test1.cpp:32: internal compiler error: in import_export_decl, at cp/decl2.c:1970
  Please submit a full bug report,
  with preprocessed source if appropriate.
  See http://bugzilla.redhat.com/bugzilla> for instructions.
  Preprocessed source stored into /tmp/ccUGE0GW.out file, please attach this to your bugreport.</p>
</blockquote>

<p>I am building this code at x86_64-redhat-linux machine, and gcc version is gcc version 4.1.2 20070626 (Red Hat 4.1.2-14)</p>

<p>Please note this code was already built with gcc version 3.4.5 20051201 (Red Hat 3.4.5-2) at i386-redhat-linux machine.</p>

<p>Any idea why this is not able to build with gcc 4.1.2.</p>

<p>Thanks in advance.</p>
