[Bug c++/78826] New: jump bypasses non-POD

2016-12-15 Thread aurzenligl at gmail dot com
: unassigned at gcc dot gnu.org Reporter: aurzenligl at gmail dot com Target Milestone: --- Compiler seems to break c++98 and c++03 standards by allowing to jump over non-POD automatic local variable declaration. // jump_bypasses_non_pod.cpp struct empty {}; struct non_pod_in_cpp03

[Bug c++/78826] jump bypasses non-POD

2016-12-16 Thread aurzenligl at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78826 --- Comment #3 from Krzysztof Laskowski --- (In reply to Jonathan Wakely from comment #2) > I assume GCC 4.5 stopped diagnosing it due to the revised specification > which only cares about trivial constructor or trivial destructor, not > PODness.