/* { dg-do compile { target c++11 } } */ /* { dg-options "-Wstrict-aliasing=2 -O2 -Wall" } */ #include struct foo { std::aligned_storage::type raw; long& cooked() { return *static_cast(static_cast(&raw)); /* { dg-bogus "strict-aliasing" } */ } };