<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>17553</bug_id>
          
          <creation_ts>2008-10-13 18:48:19 +0400</creation_ts>
          <short_desc>ICE on valid C++ virtual template static member in anonymous namespace</short_desc>
          <delta_ts>2008-10-18 16:49:00 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>gcc4.1-c++</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan A. Melnikov">iv</reporter>
          <assigned_to name="Dmitry V. Levin">ldv</assigned_to>
          <cc>glebfm</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>79577</commentid>
    <comment_count>0</comment_count>
      <attachid>2994</attachid>
    <who name="Ivan A. Melnikov">iv</who>
    <bug_when>2008-10-13 18:48:19 +0400</bug_when>
    <thetext>Created attachment 2994
Preprocessed source, как просили

Следующая ошибка воспроизводится на gcc4.1-c++-4.1.2-alt3:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33094

Это, в частности, мешает компиляции м приложений, использующих Boost.TypeTraits.

Пример некорректной работы:

$ cat test.cpp
namespace
{

template &lt;typename T&gt;
class A
{
  virtual T f1() { return c; }
  static const T c = 0;
};

A&lt;int&gt; v;

}

$ g++ test.cpp 
test.cpp: In instantiation of ‘const int &lt;unnamed&gt;::A&lt;int&gt;::c’:
test.cpp:7:   instantiated from ‘T&lt;unnamed&gt;::A&lt;T&gt;::f1() [with T = int]’
test.cpp:11:   instantiated from here
test.cpp:8: internal compiler error: in make_rtl_for_nonlocal_decl, at cp/decl.c:4970
Please submit a full bug report,
with preprocessed source if appropriate.
See &lt;URL:http://bugzilla.altlinux.org/&gt; for instructions.
Preprocessed source stored into /home/iv/tmp/ccUa5lIO.out file, please attach this to your bugreport.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79790</commentid>
    <comment_count>1</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2008-10-18 16:49:00 +0400</bug_when>
    <thetext>Fixed upstream, available in gcc4.3-c++-4.3.2-alt1</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>2994</attachid>
            <date>2008-10-13 18:48:19 +0400</date>
            <delta_ts>2008-10-13 18:48:19 +0400</delta_ts>
            <desc>Preprocessed source, как просили</desc>
            <filename>ccUa5lIO.out</filename>
            <type>application/octet-stream</type>
            <size>375</size>
            <attacher name="Ivan A. Melnikov">iv</attacher>
            
              <data encoding="base64">Ly8gL3Vzci9saWJleGVjL2djYy9pNTg2LWFsdC1saW51eC80LjEuMi9jYzFwbHVzIC1EX0ZPUlRJ
RllfU09VUkNFPTIgLXF1aWV0IC1EX0dOVV9TT1VSQ0UgdGVzdC5jcHAgLWZzdGFjay1wcm90ZWN0
b3IgLXF1aWV0IC1kdW1wYmFzZSB0ZXN0LmNwcCAtbWFyY2g9aTU4NiAtYXV4YmFzZSB0ZXN0IC1v
IC0gLWZyYW5kb20tc2VlZD0wCiMgMSAidGVzdC5jcHAiCiMgMSAiPGJ1aWx0LWluPiIKIyAxICI8
Y29tbWFuZCBsaW5lPiIKIyAxICJ0ZXN0LmNwcCIKbmFtZXNwYWNlCnsKCnRlbXBsYXRlIDx0eXBl
bmFtZSBUPgpjbGFzcyBBCnsKICB2aXJ0dWFsIFQgZjEoKSB7IHJldHVybiBjOyB9CiAgc3RhdGlj
IGNvbnN0IFQgYyA9IDA7Cn07CgpBPGludD4gdjsKCn0K
</data>

          </attachment>
      

    </bug>

</bugzilla>