Skip to content

fix const wording - #117

Merged
MaxXSoft merged 1 commit into
pku-minic:masterfrom
LiAuTraver:master
May 20, 2026
Merged

fix const wording#117
MaxXSoft merged 1 commit into
pku-minic:masterfrom
LiAuTraver:master

Conversation

@LiAuTraver

Copy link
Copy Markdown
Contributor

per [N5008/decl.constexpr]:

The consteval specifier shall be applied only to the declaration of a function or function template.

and

The constexpr specifier shall be applied only to the definition of a variable or variable template, [...].

clause 6:

(object declared as constexpr) declares the object as const, shall have literal type and shall be initialized, and shall be constant-initializable.

@MaxXSoft MaxXSoft left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for pointing this out! This version is indeed more accurate than the original text.

Comment thread docs/misc-app-ref/sysy-spec.md
@MaxXSoft

Copy link
Copy Markdown
Member

The CI failure was caused by temporary maintenance of https://gitlab.eduxiji.net/ , this can be ignored.

@MaxXSoft

Copy link
Copy Markdown
Member

LGTM, Thank you!

@MaxXSoft
MaxXSoft merged commit d172f89 into pku-minic:master May 20, 2026
1 check failed
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