[Bug c++/27235] New: goto crossing P.O.D. initialization
acahalan at gmail dot com
gcc-bugzilla@gcc.gnu.org
Fri Apr 21 03:33:00 GMT 2006
I presume that the C++ standard requires this to be an error:
int foo(int arg){
goto Hell;
int i = arg;
Hell:
return arg; // or using i here
}
Especially in the case of plain old data (no constructor, etc.)
this behavior is needlessly incompatible with C.
Please require -pedantic -std=c++98 for such unfriendly behavior.
--
Summary: goto crossing P.O.D. initialization
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: acahalan at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27235
More information about the Gcc-bugs
mailing list