[dcl.contract.func]/4 Missing IFNDR
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 55/100
- issue の種類
- ドキュメント
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- cpp, latex, tex
調査の方向性
The issue points to missing IFNDR (ill-formed, no diagnostic required) clauses in the C++ standard draft. Start by reading the linked sections [dcl.contract.func]/4 and /5 and the IFNDR annex G.6.4. Compare the wording to identify the discrepancy: one IFNDR case about mismatched contract specifiers in first declarations across translation units is documented, but another about non-first declarations may be missing. Verify the draft's structure and propose an edit to the LaTeX source, likely in the relevant .tex files under the 'dcl' or 'ifndr' sections.
索引モデルが issue の本文から書いたものです。
説明
[dcl.contract.func]/4 says
A declaration D of a function or function template f that is not a first declaration shall have either no function-contract-specifier-seq or the same function-contract-specifier-seq (see below) as any first declaration F reachable from D.
If D and F are in different translation units, a diagnostic is required only if D is attached to a named module.
If a declaration F₁ is a first declaration of f in one translation unit and a declaration F₂ is a first declaration of f in another translation unit, F₁ and F₂ shall specify the same function-contract-specifier-seq, no diagnostic required ([ifndr:dcl.contract.func.mismatched.contract.specifiers]).
There are two IFNDR cases, one about not-the-first declarations and another is about first declarations.
However, G.6.4 is only about the latter case.
If two different first declarations of a function (which must therefore not be reachable from one another) do not have equivalent function contract specifiers the program is ill-formed, no diagnostic required.
BTW, [dcl.contract.func]/5 has a totally missing IFNDR
... If this condition is not met solely due to the comparison of two lambda-expressions that are contained within P₁ and P₂, no diagnostic is required.
- 主要言語
- TeX
- スター
- 224
- フォーク
- 814
- 平均マージ
- 17時間 21分
- マージ済み PR(30日)
- 30
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
cplusplus/draft のほかの issue
-
decision-required
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
cplusplus/draft#9350 · コメント 5 件 ·
メンテナーはふだん 1 日以内に返信
-
P2-Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
cplusplus/draft#9349 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
P2-Bug
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
cplusplus/draft#9348 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
P2-Bug
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
cplusplus/draft#9343 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
cplusplus/draft#9342 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
cplusplus/draft の issue をすべて見る
似ている issue
-
bug good-title pdd
難易度 2/5 1時間未満 初心者へのやさしさ 82/100
objectionary/phino#1630 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 4 日以内に返信
-
clang:driver
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
llvm/llvm-project#227780 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信