This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]