| |
| Posted by Simon Buchan in reply to h3r3tic | PermalinkReply |
|
Simon Buchan
Posted in reply to h3r3tic
| On Thu, 23 Dec 2004 01:06:18 +0100, h3r3tic <foo@bar.baz> wrote:
> void main()
> {
> this.foobar;
> }
Confirmed: - gives segfault/memory execption at address 0x40e2ba:
Obviously should give error:
bugtest.d(3): 'this' is only allowed in non-static member functions
Note: not required to be main.
With -v it doesn't even print parse... but there is nothing that could
cause it to fail before printing that, so it must not have been flushed before
the crash. (I suspect that tracking down bugs is kind of the whole point of
printing this info?)
taking a quick peek around:
I am suspicios of expression.c 1182:
fdthis = sc->parent->isFuncDeclaration();
possible main() scope doesn't have parent (unnamed module) inited? unlikely.
--
"Unhappy Microsoft customers have a funny way of becoming Linux,
Salesforce.com and Oracle customers." - www.microsoft-watch.com:
"The Year in Review: Microsoft Opens Up"
--
"I plan on at least one critical patch every month, and I haven't been disappointed."
- Adam Hansen, manager of security at Sonnenschein Nath & Rosenthal LLP
(Quote from http://www.eweek.com/article2/0,1759,1736104,00.asp)
--
"It's been a challenge to "reteach or retrain" Web users to pay for content, said Pizey"
-Wired website: "The Incredible Shrinking Comic"
|