diff options
| author | Bob Duff <duff@adacore.com> | 2025-11-12 14:53:17 -0500 |
|---|---|---|
| committer | Marc Poulhiès <dkm@gcc.gnu.org> | 2025-11-21 09:29:37 +0100 |
| commit | ebabae605093e5a31c37ef6e5e3e809f13501f70 (patch) | |
| tree | 5c1cee887c774fc8f91883025c6f41eab32f9f59 /libjava/classpath/test/java.io/LineNumberInputStreamTest.java | |
| parent | 56722ed86ead6226148f7fc73fbf5691be2e37b2 (diff) | |
ada: Follow-on for duplicate formal iterator names
A previous fix titled "Avoid incorrect errors for duplicate formal
iterator names" caused regressions. This patch cleans it up.
In particular, the previous patch involved calling Preanalyze on
a block statement in order to get the scope created, and then
later calling Analyze on the same block statement. This caused
certain temps created inside the block statement to be
incorrectly duplicated. The fix here is to avoid setting
the Statements of the block until after it has been
preanalyzed.
gcc/ada/ChangeLog:
* exp_ch5.adb (Expand_Formal_Container_Loop):
Preanalyze block with empty statements; then set
the statements later before doing Analyze of the
block.
Diffstat (limited to 'libjava/classpath/test/java.io/LineNumberInputStreamTest.java')
0 files changed, 0 insertions, 0 deletions
