Skip to content

Modified the error description in the constexpr section.#290

Merged
changkun merged 2 commits into
changkun:masterfrom
Mq-b:constexpr-error
Jun 7, 2026
Merged

Modified the error description in the constexpr section.#290
changkun merged 2 commits into
changkun:masterfrom
Mq-b:constexpr-error

Conversation

@Mq-b
Copy link
Copy Markdown
Contributor

@Mq-b Mq-b commented May 25, 2024

fix #289

@heckerpowered
Copy link
Copy Markdown

卢瑟

Comment thread book/en-us/02-usability.md Outdated
Co-authored-by: A. Jiang <de34@live.cn>
@changkun changkun merged commit fc2e986 into changkun:master Jun 7, 2026
@changkun
Copy link
Copy Markdown
Owner

changkun commented Jun 7, 2026

Merged — thank you @Mq-b. You're right: the previous note was inaccurate. The real reason those snippets compile is the GCC/Clang VLA extension (disabled with -pedantic-errors), not "compiler optimization". This resolves #289. 🙏

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.

constexpr 一节中,是编译器扩展导致,而非是新编译器优化的问题,解释有误

4 participants