This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
The C++ standard clearly says that re-association is permitted only if the re-associated expression gives the same result as the original. So A+B+C really is (A+B)+C.
In Ada, the rule is a little more liberal, the reassociation is allowed if the result is in the same model interval. In practice though, either criterion forbids the reassocation.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |