Thread overview | |||||
---|---|---|---|---|---|
|
April 07, 2009 [Issue 2815] New: Attributes at end of file accepted | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=2815 Summary: Attributes at end of file accepted Product: D Version: 1.042 Platform: PC OS/Version: Windows Status: NEW Keywords: accepts-invalid, patch Severity: trivial Priority: P2 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: clugdbug@yahoo.com.au A file consisting only of the line: --- public static nothrow pure extern --- compiles without error. This patch (for D2.027) makes it an error. (It remains OK to end with a colon). -- |
April 07, 2009 [Issue 2815] Attributes at end of file accepted | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2815 ------- Comment #1 from clugdbug@yahoo.com.au 2009-04-07 02:06 ------- Created an attachment (id=316) --> (http://d.puremagic.com/issues/attachment.cgi?id=316&action=view) fix 2815 Adds: case TOKeof: error("declaration expected following attribute, not EOF"); break; to Parser::parseBlock() in parse.c, by analogy to the behaviour for semicolon. -- |
October 14, 2009 [Issue 2815] Attributes at end of file accepted | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2815 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Walter Bright <bugzilla@digitalmars.com> 2009-10-14 02:02:37 PDT --- This appears to already be fixed. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation