Skip to content

Conversation

i-garrison
Copy link
Contributor

Stop null dereference in ExecIf when thenClauseExec is null. This happens with throw declaration in thenClause, and ExecIf already allows for null in elseClauseExec so this is a bit more consistent.

Null thenClauseExec can be from encountered valid static_assert declaration, handle it during constexpr execution as new special problem type STATIC_ASSERT_FAILED.

Fix these and add unit test.

@i-garrison i-garrison force-pushed the feature/constexpr-execute-static-assert branch 3 times, most recently from b94bc49 to 3cc59d9 Compare September 17, 2025 20:54
Copy link

github-actions bot commented Sep 17, 2025

Test Results

  584 files   -    34    584 suites   - 34   13m 47s ⏱️ - 22m 26s
9 887 tests  - 1 216  9 862 ✅  - 1 096  24 💤  - 120  1 ❌ ±0 
9 920 runs   - 1 195  9 895 ✅  - 1 077  24 💤  - 118  1 ❌ ±0 

For more details on these failures, see this check.

Results for commit e17148d. ± Comparison against base commit 48065ad.

This pull request removes 1217 and adds 1 tests. Note that renamed tests count towards both.
org.eclipse.cdt.debug.gdbjtag.core.tests.jtagdevice.GDBJtagDeviceContributionTest ‑ testGdbJtagDeviceContribution
org.eclipse.cdt.debug.gdbjtag.core.tests.launch.GDBJtagLaunchTest ‑ testGdbJtagLaunch[gdb]
org.eclipse.cdt.debug.gdbjtag.core.tests.launch.GDBJtagLaunchTest ‑ testGdbJtagLaunch[gdbserver]
org.eclipse.cdt.tests.dsf.gdb.tests.CommandLineArgsTest ‑ testSettingArgumentsWithQuotes[gdb]
org.eclipse.cdt.tests.dsf.gdb.tests.CommandLineArgsTest ‑ testSettingArgumentsWithQuotes[gdbserver]
org.eclipse.cdt.tests.dsf.gdb.tests.CommandLineArgsTest ‑ testSettingArgumentsWithSpecialSymbols[gdb]
org.eclipse.cdt.tests.dsf.gdb.tests.CommandLineArgsTest ‑ testSettingArgumentsWithSpecialSymbols[gdbserver]
org.eclipse.cdt.tests.dsf.gdb.tests.CommandLineArgsTest ‑ testSettingArgumentsWithSymbols[gdb]
org.eclipse.cdt.tests.dsf.gdb.tests.CommandLineArgsTest ‑ testSettingArgumentsWithSymbols[gdbserver]
org.eclipse.cdt.tests.dsf.gdb.tests.CommandLineArgsTest ‑ testSettingArgumentsWithTabs[gdb]
…
org.eclipse.cdt.core.parser.tests.ast2.AST2TemplateTests ‑ testIfThenElseClauseStaticAssert

♻️ This comment has been updated with latest results.

@i-garrison i-garrison marked this pull request as draft September 17, 2025 21:21
@i-garrison i-garrison marked this pull request as ready for review September 17, 2025 21:36
…n substatement

Stop null dereference in ExecIf when thenClauseExec is null. This happens with
throw declaration in thenClause, and ExecIf already allows for null in elseClauseExec
so this is a bit more consistent.

Null thenClauseExec can be from encountered valid static_assert declaration,
handle it during constexpr execution as new special problem type STATIC_ASSERT_FAILED.
@i-garrison i-garrison force-pushed the feature/constexpr-execute-static-assert branch from 3cc59d9 to e17148d Compare September 29, 2025 20:27
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.

1 participant