~/lightning

Lightning Talk: Undefined Behaviour in C++

Lightningat C++ on Sea 2023 · 2023-06-28..06-30· [c-and-cpp]
links:none on file
slides:none on file

A tiny program compiles and runs twice with different observable outputs because the One Definition Rule is broken: two translation units provide conflicting definitions so a static instantiation choice changes runtime branching. The demonstration uses a normal C++ compiler, two object files and a simple branch that prints “loves me back” or “broke his heart”; the build executes and the outcome flips depending on ODR violation and different instantiations, exposing surprising undefined behaviour.

AI-written summary · about

  1. 0:00Intro
  2. 0:25Example
  3. 0:45I love C
  4. 1:20Statical search
  5. 2:05Runtime behaviour
  6. 2:25Summary
~/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.