[Bug c++/14250] [3.3/3.4/3.5 Regression] switch() does not seem to see operator int() in template class

giovannibajo at libero dot it gcc-bugzilla@gcc.gnu.org
Mon Feb 23 02:42:00 GMT 2004


------- Additional Comments From giovannibajo at libero dot it  2004-02-23 02:42 -------
Redux:

----------------------------------------------
template <typename T> 
struct A {
  operator int();
};
 
struct C1 
{ 
  static A<void> t1; 
 
  void fun() 
  { 
   switch(t1) 
   { 
    default: break; 
   } 
  } 
}; 
----------------------------------------------

Trivial fix in testing.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |giovannibajo at libero dot
                   |dot org                     |it
             Status|NEW                         |ASSIGNED


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



More information about the Gcc-bugs mailing list