The following c++ program compiles without error even though it crosses an initialization. I only noticed this problem on g++ 3.4.4, 3.4.5. Versions before and after 3.4 appear to be okay.
int g() { return 0; } int main() { goto L1; int i=g(); L1:; } -- Summary: program which crosses initialization compiles without error when it really should not Product: gcc Version: 3.4.5 Status: UNCONFIRMED Severity: minor Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: gary dot lazer at yahoo dot com GCC build triplet: g++ (GCC) 3.4.5 20051201 (Red Hat 3.4.5-2) GCC host triplet: Linux version 2.6.9-34.ELsmp GCC target triplet: CentOS release 4.3 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26962