We have a C test that now gets a warning about a C++1z extension, which seems inappropriate.
Details
Details
Diff Detail
Diff Detail
Event Timeline
lib/Sema/SemaDecl.cpp | ||
---|---|---|
6189–6191 | I'd suggest sorting this condition higher. It doesn't make much sense to mention block scopes when inline variables are prohibited in all contexts in C. |
lib/Sema/SemaDecl.cpp | ||
---|---|---|
6189–6191 | Right... for some reason the word 'block' in the comment made me think it was an Objective-C thing. The C-language check is first now. |
Comment Actions
Reorder the checks. I didn't see any tests for the adjacent (C++) diagnostics so I added some.
I'd suggest sorting this condition higher. It doesn't make much sense to mention block scopes when inline variables are prohibited in all contexts in C.