Bug 23 – DDoc Error: "static if conditional cannot be at global scope."

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2006-03-06T11:26:00Z
Last change time
2014-02-14T20:33:32Z
Keywords
rejects-valid
Assigned to
bugzilla
Creator
sean

Comments

Comment #0 by sean — 2006-03-06T11:26:51Z
DMD DDoc generation will not accept static if blocks defined at class scope, though the code compiles cleanly to an executable. C:\code\d\bugs>type 148_1.d /** * */ struct MyStruct(T) { static if( true ) { void f1() {} } } void main() { } C:\code\d\bugs>dmd -D -o- 148_1.d 148_1.d(6): Error: static if conditional cannot be at global scope C:\code\d\bugs>
Comment #1 by bugzilla — 2006-04-28T02:54:54Z
Fixed 0.155