[Bug c++/54807] New: Names declared in a for's for-init-statement and condition should be in the same declarative region
ulfalizer at gmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Oct 4 04:51:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54807
Bug #: 54807
Summary: Names declared in a for's for-init-statement and
condition should be in the same declarative region
Classification: Unclassified
Product: gcc
Version: 4.6.3
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: ulfalizer@gmail.com
for (int i; int i = 0;) should give an error but currently doesn't.
14882:2003 6.5.3.1: "...except that names declared in the for-init-statement
are in the same declarative-region as those declared in the condition".
More information about the Gcc-bugs
mailing list