D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 23251 - Deprecation: format specifier "%[a-z]" is invalid
Summary: Deprecation: format specifier "%[a-z]" is invalid
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 normal
Assignee: No Owner
URL:
Keywords: rejects-valid
Depends on:
Blocks:
 
Reported: 2022-07-15 16:48 UTC by Iain Buclaw
Modified: 2022-07-20 02:48 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Iain Buclaw 2022-07-15 16:48:32 UTC
Another bogus deprecation message.

Weirdly, `%[a-z]s` is accepted instead, which means the scanf format parser is not treating "%[" as its own specifier.
Comment 1 Dlang Bot 2022-07-19 19:45:15 UTC
@ibuclaw created dlang/dmd pull request #14316 "Issue 23251 - Deprecation: format specifier "%[a-z]" is invalid" mentioning this issue:

- Issue 23251 - Deprecation: format specifier "%[a-z]" is invalid

https://github.com/dlang/dmd/pull/14316
Comment 2 Dlang Bot 2022-07-20 02:48:47 UTC
dlang/dmd pull request #14316 "fix Issue 23251 - Deprecation: format specifier "%[a-z]" is invalid" was merged into master:

- d811e0c55af4e8fd8c04c09ef37e1670e0bc32e6 by Iain Buclaw:
  fix Issue 23251 - Deprecation: format specifier "%[a-z]" is invalid

https://github.com/dlang/dmd/pull/14316