Thread overview | ||||||
---|---|---|---|---|---|---|
|
April 13, 2006 [Bug 104] New: Forward reference error occurs when the -g switch is invoked | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/bugzilla/show_bug.cgi?id=104 Summary: Forward reference error occurs when the -g switch is invoked Product: D Version: 0.154 Platform: PC URL: http://www.dsource.org/projects/bindings/browser/trunk/f reetype/freetype/def.d OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: clayasaurus@gmail.com The following code compiles fine with 'dmd -c bug.d', but gives a forward reference error when compiled as 'dmd -c -g bug.d' -- bug.d ---------------------------- Foofunc f; alias int function(Foo) Foofunc; ------------------------------------- -- |
April 14, 2006 Re: [Bug 104] New: Forward reference error occurs when the -g switch is invoked | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail Attachments: | d-bugmail@puremagic.com schrieb am 2006-04-13: > The following code compiles fine with 'dmd -c bug.d', but gives a forward reference error when compiled as 'dmd -c -g bug.d' > > -- bug.d ---------------------------- > > Foofunc f; > > alias int function(Foo) Foofunc; > > ------------------------------------- Added to DStress as http://dstress.kuehne.cn/nocompile/a/alias_34_A.d http://dstress.kuehne.cn/nocompile/a/alias_34_B.d http://dstress.kuehne.cn/nocompile/t/typedef_15_A.d http://dstress.kuehne.cn/nocompile/t/typedef_15_B.d See also: http://dstress.kuehne.cn/compile/a/alias_33_A.d http://dstress.kuehne.cn/compile/a/alias_33_B.d Thomas |
May 18, 2006 [Bug 104] Forward reference error occurs when the -g switch is invoked | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/bugzilla/show_bug.cgi?id=104 smjg@iname.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |smjg@iname.com ------- Comment #2 from smjg@iname.com 2006-05-18 09:27 ------- (In reply to comment #0) > The following code compiles fine with 'dmd -c bug.d' It shouldn't, because there's no definition of Foo. I'm curious about what it's doing. (In reply to comment #1) > http://dstress.kuehne.cn/compile/a/alias_33_A.d http://dstress.kuehne.cn/compile/a/alias_33_B.d 404 -- |
May 19, 2006 Re: [Bug 104] Forward reference error occurs when the -g switch is invoked | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail Attachments: | d-bugmail@puremagic.com schrieb am 2006-05-18: > http://d.puremagic.com/bugzilla/show_bug.cgi?id=104 > (In reply to comment #1) >> http://dstress.kuehne.cn/compile/a/alias_33_A.d http://dstress.kuehne.cn/compile/a/alias_33_B.d typo... http://dstress.kuehne.cn/nocompile/a/alias_33_A.d http://dstress.kuehne.cn/nocompile/a/alias_33_B.d Thomas |
Copyright © 1999-2021 by the D Language Foundation