File tree 2 files changed +2
-2
lines changed
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"; }
493
493
constexpr const char* f(bool p) { return p ? "constant initializer" : g(); }
494
494
495
495
constinit 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.
497
497
```
498
498
499
499
### \_\_VA\_OPT\_\_
Original file line number Diff line number Diff line change @@ -597,7 +597,7 @@ const char* g() { return "dynamic initialization"; }
597
597
constexpr const char* f(bool p) { return p ? "constant initializer" : g(); }
598
598
599
599
constinit 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.
601
601
```
602
602
603
603
### \_\_VA\_OPT\_\_
You can’t perform that action at this time.
0 commit comments