by bmenrigh · 1y ago · 0 comments
When I reflect on the ~25 years I’ve been programming C, all of the times I thought I’d found a compiler bug were in the first ~8 years. Dunning-Kruger hard at work :-/
GCC and Clang disagreed on this. Upon close reading, Clang was right, C should be able to access x.
(Why did I do this? C was a helper class for the purpose of running unit tests. Unit tests are supposed to poke around in stuff you wouldn't normally poke around in.)