RISC OS Open
Safeguarding the past, present and future of RISC OS for everyone
ROOL
Home | News | Downloads | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

Previous|Next

  • Tickets
  • » Ticket #502

Ticket #502 (Fixed)Fri Nov 27 16:21:08 UTC 2020

cc 5.85: Reading anonyomous struct/union members sometimes returns the wrong value

Reported by: Jeffrey Lee (213) Severity: Major
Part: RISC OS: C/C++ toolchain Release:
Milestone: Status Fixed

Details by Jeffrey Lee (213):

The attached code produces incorrect output (5 0, 5 5). The situation that triggers the bug seems to depend on a number of conditions; if you make any of the following changes then the correct output will be produced:

1. Rearrange the struct definition (swap the #if 1 to #if 0)
2. Make the structs & unions non-anonymous
3. Replace the void * members with ints

Changelog:

Modified by Jeffrey Lee (213) Fri, November 27 2020 - 16:21:20 GMT

  • Attachment added: three

Modified by Jeffrey Lee (213) Sun, February 28 2021 - 17:37:28 GMT

  • Status changed from Open to Fixed

Appears to be fixed in CC 5.86 (DDE30a)

  • Comment on, or change status of, this ticket

Previous|Next

Search tickets

Social

Follow us on and

ROOL Store

Buy RISC OS Open merchandise here, including SD cards for Raspberry Pi and more.

Donate! Why?

Help ROOL make things happen – please consider donating!

RISC OS IPR

RISC OS is an Open Source operating system owned by RISC OS Developments Ltd and licensed primarily under the Apache 2.0 license.

Options

  • Tickets
  • New ticket
  • Milestones
  • Subversion: Changesets
  • Subversion: Browse
  • CVS: Revisions
  • CVS: Browse
  • Search

RSS feeds Rss

  • Tickets
  • Everything!
  • More feeds...
Site design © RISC OS Open Limited 2018 except where indicated
The RISC OS Open Collaboa theme is distantly based on the Collaboa default layout

Valid XHTML 1.0  |  Valid CSS

Powered by Collaboa
This site runs on Rails

Hosted by Arachsys