[Bug c++/20668] [3.4/4.0/4.1 Regression] ICE on invalid code, value dependent but invalid wise

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Mar 28 14:05:00 GMT 2005


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-28 14:05 -------
Confirmed, reduced testcase:
template <long> struct f
{
  typedef int reference;
};
template<typename E> struct bitset
{
  static const E lwb;
  static const long bitCount = int(lwb) + 1;
  typename f<bitCount>::reference operator[](int e);
};
bitset<float> _gBitset;


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|error-recovery              |
      Known to work|                            |3.3.3
   Last reconfirmed|0000-00-00 00:00:00         |2005-03-28 14:05:03
               date|                            |
            Summary|ICE (segv)                  |[3.4/4.0/4.1 Regression] ICE
                   |                            |on invalid code, value
                   |                            |dependent but invalid wise
   Target Milestone|---                         |4.0.1


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



More information about the Gcc-bugs mailing list