Skip to content

Commit 1ae9035

Browse files
[defns.undefined] Fix the note on UB in constant evaluation
Currently, the `assmue` and `noreturn` attributes are allowed to bring undefined behavior into constant evaluation. There might be more such standard attributes in the future.
1 parent c92bc38 commit 1ae9035

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/intro.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,8 @@
256256
Implementations are allowed, but not required,
257257
to diagnose it\iref{intro.compliance.general}.
258258
Evaluation of a constant expression\iref{expr.const}
259-
never exhibits behavior specified as erroneous in \ref{intro} through \ref{cpp}.
259+
never exhibits behavior specified as erroneous in \ref{intro} through \ref{cpp}
260+
with standard attributes\iref{dcl.attr} ignored.
260261
\end{defnote}
261262

262263
\definition{expression-equivalent}{defns.expression.equivalent}

0 commit comments

Comments
 (0)