File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -493,7 +493,7 @@ const char* g() { return "dynamic initialization"; }
493493constexpr const char* f(bool p) { return p ? "constant initializer" : g(); }
494494
495495constinit const char* c = f(true); // OK
496- constinit const char* d = g(false); // ERROR: ` g ` is not constexpr, so ` d ` cannot be evaluated at compile-time.
496+ constinit const char* d = g(); // ERROR: ` g ` is not constexpr, so ` d ` cannot be evaluated at compile-time.
497497```
498498
499499### \_\_VA\_OPT\_\_
Original file line number Diff line number Diff line change @@ -597,7 +597,7 @@ const char* g() { return "dynamic initialization"; }
597597constexpr const char* f(bool p) { return p ? "constant initializer" : g(); }
598598
599599constinit const char* c = f(true); // OK
600- constinit const char* d = g(false); // ERROR: `g` is not constexpr, so `d` cannot be evaluated at compile-time.
600+ constinit const char* d = g(); // ERROR: `g` is not constexpr, so `d` cannot be evaluated at compile-time.
601601```
602602
603603### \_\_VA\_OPT\_\_
You can’t perform that action at this time.
0 commit comments