[Bug c++/19208] [3.4/4.0 Regression] Spurious error about variably modified type

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Dec 30 14:27:00 GMT 2004


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-30 14:27 -------
Reduced testcase:
template <class C> struct if_t { typedef int type; };
template <class T> struct ffff { static const bool value = true; };
template <class A>
struct bound_member_action
{
  typedef char f[ffff<A>::value ? 1 : 2];
  template <class CT>
  bound_member_action(CT i, typename if_t<f>::type g)  {}
};
bound_member_action<int> a(0, 1);



: Search converges between 2004-01-27-trunk (#442) and 2004-01-28-trunk (#443).

Just a note that date is when it started to seg fault.
We started to reject this (and not an ICE):
: Search converges between 2004-03-01-3.4 (#2) and 2004-03-15-3.4 (#3).
: Search converges between 2004-03-01-trunk (#446) and 2004-04-01-trunk (#447).


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-12-30 14:27:10
               date|                            |


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



More information about the Gcc-bugs mailing list