Issue 122767 - Fix pre-C++99 for-scope
Summary: Fix pre-C++99 for-scope
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: 3.4.1
Hardware: All All
: P4 Normal (vote)
Target Milestone: 4.1.0
QA Contact:
Depends on:
Blocks: 122766
  Show dependency tree
Reported: 2013-07-17 08:42 UTC by
Modified: 2013-12-19 16:45 UTC (History)
1 user (show)

See Also:
Issue Type: TASK
Latest Confirmation in: ---
Developer Difficulty: ---


Note You need to log in before you can comment on or make changes to this issue.
Description 2013-07-17 08:42:47 UTC
According to the C++ standard for-loop initializers go out of scope after the for loop. Currently AOO still uses the Zc:forScope option to allow the pre-standard behavior.
Comment 1 SVN Robot 2013-07-17 11:55:52 UTC
"hdu" committed SVN revision 1504081 into trunk:
#i122767# disallow pre-standard C++ for-scope
Comment 2 2013-07-17 11:58:32 UTC
Now the pre-standard for-scope is disabled on the last platform that still allowed it.