Topic: Defect Report: scopes for selection statements


Author: Marc Paterno <paterno@fnal.gov>
Date: 2000/04/22
Raw View
I find the text of section 6.4.1 of the standard unclear, and would like an
authoritative
clarification. The section in question is:

"... The substatement in a selection-statement (both substatements, in the
else-form of
the if statement) implicitly defines a local scope (3.3)."

By my reading, this means that the two substatements of the else-form
implicity define
a single scope. I suspect that this is not what is intended. Is it?

If not, I'd propose the following modification:

"... The substatement in a selection-statement (each substatement, in the
else-form of
the if statement) implicitly defines a local scope (3.3)."

best regards,
Marc Paterno
---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]