-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Closed
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfThe Swift compiler itselfgood first issueGood for newcomersGood for newcomers
Description
| Previous ID | SR-2404 |
| Radar | rdar://problem/22157790 |
| Original Reporter | @belkadan |
| Type | Bug |
| Status | Resolved |
| Resolution | Done |
Additional Detail from JIRA
| Votes | 0 |
| Component/s | Compiler |
| Labels | Bug, StarterBug |
| Assignee | @CodaFi |
| Priority | Medium |
md5: a01133e8f636613e7b7012a9ceb819d8
Issue Description:
If people use non-identifier -D flags with Swift assuming that it works the same as C, the compiler just throws that away. (Actually, it's probably dutifully adding a custom condition that just can't ever be typed.) We should produce an error on a non-identifier -D flag (as determined by Lexer::isIdentifier), possibly with special cases for =.
Metadata
Metadata
Assignees
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfThe Swift compiler itselfgood first issueGood for newcomersGood for newcomers