We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90c7ce3 commit cd6d39bCopy full SHA for cd6d39b
lang/cpp26/erroneous_behavior_for_uninitialized_reads.md
@@ -64,13 +64,14 @@ int g(bool b) {
64
void h() {
65
int d1, d2;
66
67
- int e1 = d1; // 誤り起因動作
68
- int e2 = d1; // 誤り起因動作
+ int e1 = d1; // 誤り起因動作
+ int e2 = d1; // 誤り起因動作
69
70
// 処理が続行した場合…
71
- assert(e1 == e2); // OK。誤り起因動作の結果で生成された値は正常
72
- assert(e1 == d1); // 誤り起因動作
73
- assert(e2 == d1); // 誤り起因動作
+ assert(e1 == e2); // OK。誤り起因動作の結果で生成された値 (e1とe2) は、
+ // 誤り起因動作を引き起こす値とはみなされない
+ assert(e1 == d1); // 誤り起因動作
74
+ assert(e2 == d1); // 誤り起因動作
75
76
// 誤り起因動作ではないが
77
// d2は誤り起因動作を引き起こす未初期化値をもつ
0 commit comments