// RUN: %clang_cc1 -fsyntax-only -verify %s template struct S { S(int); }; struct T; // expected-note{{forward declaration of 'T'}} void f() { S s0 = static_cast >(0); S s1 = static_cast >(00); (void)static_cast(10); // expected-error{{'T' is an incomplete type}} }