digitalmars.D.bugs - Internal error: ..\ztc\cod1.c 1293
- Chris Sauls (17/19) Jan 02 2006 Will exhibit the error:
When attempting to compile the latest Mango source, I caught this nasty. Using the command line:build mango -inline -OWill exhibit the error:Internal error: ..\ztc\cod1.c 1293It requires that those two specific command line arguments be present, at minimum, for the error to manifest. Using dmd's -v output, I think the offending code is in mango.utils.Timer, as that is where it gets to before issuing this error. The specific offending function is mango.utils.Timer.update() which looks like: So... I'd say what's happening, is that DMD is marking it as a candidate for inlining -- since its a one-liner anyhow -- and then barfing all over the 'volatile' attribute, perhaps? Should the 'private' attribute prevent inlining, especially since both of the fields referanced ('time', and 'interval') are private? Dunno. -- Chris Sauls
Jan 02 2006