From 27283be7d1d86a0f08bcde1c7602b18a18be4db3 Mon Sep 17 00:00:00 2001 From: chrchr-github <78114321+chrchr-github@users.noreply.github.com> Date: Mon, 8 Jun 2026 15:46:20 +0200 Subject: [PATCH 1/2] Update std.cfg --- cfg/std.cfg | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cfg/std.cfg b/cfg/std.cfg index ec5fbb72548..33fbd3585e9 100644 --- a/cfg/std.cfg +++ b/cfg/std.cfg @@ -8814,6 +8814,12 @@ initializer list (7) string& replace (const_iterator i1, const_iterator i2, init + + + + true + + malloc,std::malloc calloc,std::calloc From 89145d59cd50af64f1449974ddaa5c91aec7b201 Mon Sep 17 00:00:00 2001 From: chrchr-github <78114321+chrchr-github@users.noreply.github.com> Date: Mon, 8 Jun 2026 15:49:15 +0200 Subject: [PATCH 2/2] Update std.cpp --- test/cfg/std.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/cfg/std.cpp b/test/cfg/std.cpp index 0344b98455c..90082d39d26 100644 --- a/test/cfg/std.cpp +++ b/test/cfg/std.cpp @@ -5367,3 +5367,13 @@ int containerOutOfBounds_std_initializer_list() { // #14340 int i = *x.end(); return i + containerOutOfBounds_std_initializer_list_access(x); } + +int* missingReturn_std_throw_with_nested() { // #14374 + try { + int* p = new int(); + return p; + } + catch (...) { + std::throw_with_nested(std::runtime_error("xyz")); + } +}