~/lightning

Lightning Talk: Finding My First Compiler Bug

Lightningat C++Now 2023 · 2023-05-07..05-12· [c-and-cpp]
slides:none on file

Finds a reproducible Visual Studio bug where a non-type template parameter that holds a small structural type is correct at compile time (static_assert passes) but gets zeroed out at runtime when code is placed in an immediately-invoked lambda. Example reduces to a struct wrapping an int, a trivial concept, and a constrained Checker template instantiated with that structural NTTP, showing differing runtime vs compile-time results and a clear minimal repro.

AI-written summary · about

  1. 0:00Introduction
  2. 0:20Example
  3. 0:50Parse
  4. 1:35Parse Example
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.