This fixes http://llvm.org/PR20145.
Details
Diff Detail
Event Timeline
Usually we only downgrade this kind of error if it was blocking a system header, code that was automatically generated by some sort of IDL, or if it is impractical to change the code in some other way. Is that the case here?
It's preferable, in my eyes, to keep it an error so that programmers make their code conforming instead of just ignoring another warning fly by on their terminal.
I don't think clang-cl should mirror every bug in cl, just the important ones.
I'd echo what David said, but otherwise, this seems fine.
lib/Sema/SemaDecl.cpp | ||
---|---|---|
3290 | We use LangOpts.MSVCCompat to control these language bending extensions. |
We hit this error in our code and I have since fixed the code on our side.
I'm not aware of any system headers or generate code that hits this.
Based on that, should we can this patch?
Ehsan
http://ehsanakhgari.org/
We use LangOpts.MSVCCompat to control these language bending extensions.