[lkml]   [2019]   [Mar]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] static_assert: move before people start using it
On 10/03/2019 22.30, Alexey Dobriyan wrote:
> and BUILD_BUG is bad). Once everything is converted to static_assert(),

That will never happen, because the two are not interchangeable
[ignoring the churn it would involve]. BUILD_BUG_ON can eat expressions
which static_assert won't (e.g. BUILD_BUG_ON(cnt - label1 != OFFSET1);,
where cnt and label1 are definitely not ICEs). Which is one of the
reasons the kernel cannot be built without optimizations.

 \ /
  Last update: 2019-03-10 23:09    [W:0.054 / U:31.372 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site