[Bug c++/20220] [4.0/4.1 Regression] Rejecting invalid template code, breaks most of Boost

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Feb 27 00:06:00 GMT 2005


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-02-26 00:55 -------
Easy reduction:
template <class T, T i> class b {};
template <class T, T i> class a
{
static const T value = i;
  b<T, static_cast<T>(value+1) > next;
};

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-02-26 00:55:09
               date|                            |


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



More information about the Gcc-bugs mailing list