From 10c0b7129c74ca1439572d19aa41bef35a0ae4c9 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Wed, 5 Nov 2025 14:40:13 +0100 Subject: [PATCH] [expr.const] Use different classes for unrelated parts of the example --- source/expressions.tex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/expressions.tex b/source/expressions.tex index 180fbbac2f..9cd38c4ef5 100644 --- a/source/expressions.tex +++ b/source/expressions.tex @@ -9383,11 +9383,12 @@ std::meta::define_aggregate(^^S7, {}); // error: consteval block \#1 does not enclose itself, // but encloses \tcode{S7} + struct S8; // local class consteval { // \#2 std::meta::define_aggregate(^^S6, {}); // error: consteval block \#1 encloses // consteval block \#2 but not \tcode{S6} - std::meta::define_aggregate(^^S7, {}); // OK, consteval block \#1 encloses both \#2 and \tcode{S7} + std::meta::define_aggregate(^^S8, {}); // OK, consteval block \#1 encloses both \#2 and \tcode{S8} } } \end{codeblock}