3 ms·
Just this week I reported a compiler bug to clang saying it accepts the c11 keyword _thread_local in c99 mode, and there seems no set of options which will even
by CJefferson 9y ago
Just this week I reported a compiler bug to clang saying it accepts the c11 keyword _thread_local in c99 mode, and there seems no set of options which will even make it warn me I'm using c11 constructs. It was closed "wontfix".
- turbohedgehog 9y agoHere's the reason for anyone wondering: _Thread_local is reserved in C99, so we don't need a -pedantic warning. (Quoting the standard: "All identifiers that begin with an underscore and either an uppercase letter or another underscore are always reserved for any use.") http://lists.llvm.org/pipermail/llvm-bugs/2017-June/056419.html http://lists.llvm.org/pipermail/llvm-bugs/2017-June/056419.h...
- CJefferson 9y agoWhich I don't really understand.. I mean, you don't need to warn about anything, that's what "warning" means, and having no way of warning that I'm using things from C11 seems weird to me, given how many other warnings exist.