// { dg-do compile } // { dg-additional-options "-w" } void a(const char *, int, const char *, const char *); template void c(b); struct d { long e; template union f; template union f { f(h *i) : j(i) {} h *j; long bits; }; static int k(volatile long &i) { return *(int *)f(&i).bits; } typedef long g; operator g() volatile { int l = k(e); c(l); } }; struct : d { } m, n; bool o; void p() { (o ? m : n) ? (void)0 : a("", 5, "", ""); }