Bug 22564 – AttributeSpecifier (grammar) definition is wrong

Status
NEW
Severity
normal
Priority
P3
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-12-03T16:25:27Z
Last change time
2024-12-15T15:27:16Z
Assigned to
No Owner
Creator
Răzvan Ștefănescu
Moved to GitHub: dlang.org#3991 →

Comments

Comment #0 by rumbu — 2021-12-03T16:25:27Z
According to the official grammar this is the definition for an attribute specifier: AttributeSpecifier Attribute : Attribute DeclarationBlock In fact, when you write pure @safe nothrow @nogc: or pure @safe nothrow @nogc { } there are multiple attributes that will be applied to the subsequent declarations. Consequentely, in my opinion, the grammar is wrong and should be: AttributeSpecifier Attributes : Attributes DeclarationBlock Attributes Attribute Attribute Attributes
Comment #1 by robert.schadek — 2024-12-15T15:27:16Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dlang.org/issues/3991 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB