URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [other/] [switch1.C] - Rev 301
Compare with Previous | Blame | View Log
// { dg-do compile }
// Contributed by: Nick Savoiu <savoiu at ics dot uci dot edu>
// PR c++/14250: Incomplete type in switch statement
template <typename T>
struct A {
operator int();
};
struct C1 {
static A<void> t1;
void fun()
{
switch(t1)
{
default: break;
}
}
};