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 #501

Ticket #501 (Open)Fri Nov 27 15:44:33 UTC 2020

cc 5.85: Designated initialisers incorrectly initialise anonymous unions

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

Details by Jeffrey Lee (213):

Using designated initialisers to initialise a struct containing anonyomous unions results in the values being written to the wrong location. The equivalent code using named unions appears to work OK (see attached code).

*cc two.c
Norcroft RISC OS ARM C vsn 5.85 [22 Oct 2020]
*two
00000000 00000005
00000005 00000000

Note: attempting to initialise the .y or .b members of v results in an internal compiler error.

Changelog:

Modified by Jeffrey Lee (213) Fri, November 27 2020 - 15:45:08 GMT

  • Attachment added: two

  • 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