[Issue 9693] New: unclear scoping behaviour of declarations made in static if conditions
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Mar 11 17:14:34 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9693
Summary: unclear scoping behaviour of declarations made in
static if conditions
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: timon.gehr at gmx.ch
--- Comment #0 from timon.gehr at gmx.ch 2013-03-11 17:14:31 PDT ---
With DMD 2.062, the following code compiles and runs:
void main() {
int[string] x;
static if (is(typeof(x) S : T[U], T, U)) { }
pragma(msg, S, " ", T, " ", U);
}
This is not evident from the spec. The spec should clarify whether this is
supposed to compile or not. If it is not, the compiler implementation should be
fixed.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list