// Build don't link: // Special g++ Options: -fexceptions -pedantic-errors // prms-id: 6058 void bar(struct s1 { } a) { (void)a; } // ERROR - struct s2*fooey() { try { static_cast(0); // ERROR - const_cast((s4*)0); // ERROR - reinterpret_cast((s3*)0); // ERROR - dynamic_cast((s6*)0); // ERROR - (struct s7 { } *)(int*)0xffedec; // ERROR - } catch (struct s8 { } s) { // ERROR - } return 0; }