Skip to content

Preserve scoped enum underlying signedness - #456

Draft
71iq wants to merge 3 commits into
edgcpp:mainfrom
71iq:fix/edg-28934-scoped-enum-signedness
Draft

71iq wants to merge 3 commits into
edgcpp:mainfrom
71iq:fix/edg-28934-scoped-enum-signedness

Conversation

@71iq

@71iq 71iq commented Nov 1, 2026

Copy link
Copy Markdown

Use the fixed underlying integer type when emitting scoped enumerations through the C-generating back end. Scoped enum bit fields also retain the signedness of that underlying type.

Related discussion: #296
Previously accepted by Mike Herrick as issue EDGcpfe/28934.

Adds runtime checks for negative values, empty scoped enums, and signed, unsigned, and bool enum bit fields, plus front-end underlying-type checks. The regression program exits 0 with GCC 13.

EDG build, regression testing, and test recordings are pending because the Docker development environment is unavailable. This PR is a draft until those checks are completed.

@coderabbitai

coderabbitai Bot commented Nov 1, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@edgcpp-bot

Copy link
Copy Markdown
Collaborator

AcknowlEDG review results updated for 79765464b6c4:

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants