Discussed here: https://reviews.llvm.org/D119061#3310822
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
It looks like the precommit CI caught a few more places where we need to add quotes in the diagnostic.
clang/test/Sema/attr-nomerge-ast.cpp | ||
---|---|---|
9–17 | Might as well drop the line and column info (then we can update the test easier and not have to worry about also updating those values; they're not what's under test anyway). | |
clang/test/Sema/attr-nomerge.cpp | ||
11 | I dug out the standard and stared at it, I no longer think this behavior in incorrect. https://eel.is/c++draft/stmt.stmt#stmt.label-1.sentence-2 (The attribute is on the label decl level, not on the label statement level. As best I can tell, there is no way to write an attribute on a label statement.) C2x follows suit with their grammar as well. The things I learn about these languages... :-D |
clang/test/Sema/attr-nomerge.cpp | ||
---|---|---|
11 | Ah, yeah, right C++ standard is always cool to read = ) |
I dug out the standard and stared at it, I no longer think this behavior in incorrect.
https://eel.is/c++draft/stmt.stmt#stmt.label-1.sentence-2
(The attribute is on the label decl level, not on the label statement level. As best I can tell, there is no way to write an attribute on a label statement.)
C2x follows suit with their grammar as well.
The things I learn about these languages... :-D