Difference between revisions of "cpp/language/ndr"
From cppreference.com
(link back to UB where this term is also introduced) |
|||
Line 3: | Line 3: | ||
"No diagnostic required" indicates that some phraseology is ill-formed according to the language rules, but a compiler need not issue any diagnostic or error message. Usually, the reason is that trying to detect these situations would result in prohibitively long compile times. | "No diagnostic required" indicates that some phraseology is ill-formed according to the language rules, but a compiler need not issue any diagnostic or error message. Usually, the reason is that trying to detect these situations would result in prohibitively long compile times. | ||
+ | |||
+ | If such a program is executed, [[cpp/language/ub|the behavior is undefined]]. | ||
{{dsc begin}} | {{dsc begin}} |
Revision as of 07:44, 29 November 2021
"No diagnostic required" indicates that some phraseology is ill-formed according to the language rules, but a compiler need not issue any diagnostic or error message. Usually, the reason is that trying to detect these situations would result in prohibitively long compile times.
If such a program is executed, the behavior is undefined.
C documentation for No Diagnostic Required
|