This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14250] [3.3/3.4/3.5 Regression] switch() does not seem to see operator int() in template class
- From: "giovannibajo at libero dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Feb 2004 02:42:07 -0000
- Subject: [Bug c++/14250] [3.3/3.4/3.5 Regression] switch() does not seem to see operator int() in template class
- References: <20040223010937.14250.savoiu@ics.uci.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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