There is a lot of C++ code in the wild still using 'register', which
will become broken if we switch the default compilation mode to
C++17. A default-on warning seems to get the message across
sufficiently, without unnecessarily breaking code that hasn't asked
for it (e.g. with -Werror). GCC has also chosen to make -Wregister an
on-by-default warning.
Details
Details
- Reviewers
rsmith
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo