* g++.dg/other/switch1.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78295
138bc75d-0d04-0410-961f-
82ee72b054a4
+2004-02-23 Giovanni Bajo <giovannibajo@gcc.gnu.org>
+
+ PR c++/14250
+ * g++.dg/other/switch1.C: New test.
+
2004-02-23 Eric Botcazou <ebotcazou@libertysurf.fr>
* gcc.dg/cast-function-1.c: Adjust for new informative message.
--- /dev/null
+// { 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;
+ }
+ }
+};