Author
anonymous
about 6 years ago
C++
clang 7.0.0
$ clang++ prog.cc -Wall -Wextra -std=c++11
prog.cc:16:6: error: 'global' cannot be captured because it does not have automatic storage duration [global] { ++global; } (); ^ prog.cc:6:5: note: 'global' declared here int global = 10; ^ 1 error generated.