Skip to content

Commit 5e8c37d

Browse files
C++26 未初期化変数の読み取り : indeterminateのサンプルコードミスを修正
Co-authored-by: Kazutoshi SATODA <k_satoda@f2.dion.ne.jp>
1 parent aeee953 commit 5e8c37d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lang/cpp26/erroneous_behavior_for_uninitialized_reads.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ struct T {
100100
};
101101
102102
int h(T t [[indeterminate]]) {
103-
f(t.x); // この関数呼び出しは未定義動作を引き起こす
103+
f(t.x); // 後述の関数呼び出しはここで未定義動作を引き起こす
104104
return 0;
105105
}
106106

0 commit comments

Comments
 (0)