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

2021-08-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78826 --- Comment #6 from Andrew Pinski --- Here is another one where GCC6- used to reject and in GCC7+ accepts (note this looks to be only valid C++11 anyways): struct vec { vec () = default; }; void ggg () { goto out; vec odsd; out: ; } CU

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

2016-12-22 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78826 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

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

2016-12-21 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78826 --- Comment #5 from Jason Merrill --- (In reply to Jonathan Wakely from comment #4) > Jason, do you see any advantage to making this a pedwarn for -std=c++98 That seems to make sense, given that other compilers diagnose it.

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

2016-12-21 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78826 Jonathan Wakely changed: What|Removed |Added CC||jason at gcc dot gnu.org --- Comment #

[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.

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

2016-12-16 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78826 --- Comment #2 from Jonathan Wakely --- GCC 4.4.7 gives an error: pod.cc: In function ‘void should_not_compile()’: pod.cc:6: error: jump to label ‘label’ pod.cc:4: error: from here pod.cc:5: error: enters scope of non-POD ‘non_pod_in_cpp03 x

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

2016-12-15 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78826 --- Comment #1 from Andrew Pinski --- Note there might be a rule about non trivial constructors in there too.