This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/26962] New: program which crosses initialization compiles without error when it really should not
- From: "gary dot lazer at yahoo dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Mar 2006 16:00:28 -0000
- Subject: [Bug c++/26962] New: program which crosses initialization compiles without error when it really should not
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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