repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
other
/
switch1.C
blob
a22d2b573faaa1e624b238625f51fbdd7f22f01d
1
// { dg-do compile }
2
// Contributed by: Nick Savoiu <savoiu at ics dot uci dot edu>
3
// PR c++/14250: Incomplete type in switch statement
4
5
template <typename T>
6
struct A {
7
operator int();
8
};
9
10
struct C1 {
11
static A<void> t1;
12
13
void fun()
14
{
15
switch(t1)
16
{
17
default: break;
18
}
19
}
20
};