From 0f3fcc224ed9e18a1d8f7892d9c702ba71cc8fe0 Mon Sep 17 00:00:00 2001 From: chrchr-github Date: Mon, 19 Jan 2026 21:30:13 +0100 Subject: [PATCH] Add test for #10733 --- test/testother.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/testother.cpp b/test/testother.cpp index 7a3f0a176cf..d3383017d91 100644 --- a/test/testother.cpp +++ b/test/testother.cpp @@ -2629,6 +2629,14 @@ class TestOther : public TestFixture { check("void f(const std::array a[]) {}\n"); // #13524 ASSERT_EQUALS("", errout_str()); + check("struct S {\n" // #10733 + " std::vector v;\n" + " using F = void (*)();\n" + " void func(F f);\n" + "};\n" + "void S::func(S::F f) {}\n"); + ASSERT_EQUALS("", errout_str()); + /*const*/ Settings settingsWin64 = settingsBuilder().platform(Platform::Type::Win64).build(); check("using ui64 = unsigned __int64;\n" "ui64 Test(ui64 one, ui64 two) { return one + two; }\n",