www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Bug 104] New: Forward reference error occurs when the -g switch is invoked

reply d-bugmail puremagic.com writes:
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;

-------------------------------------


-- 
Apr 13 2006
next sibling parent Thomas Kuehne <thomas-dloop kuehne.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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 -----BEGIN PGP SIGNATURE----- iD8DBQFEP3y33w+/yD4P9tIRAkB4AKDIqFQPqZq+iYIke3Vz6QQeHlGYlQCdGqsV lXbrQNrZDd0VSW+YxTIPmHg= =YKyT -----END PGP SIGNATURE-----
Apr 14 2006
prev sibling parent reply d-bugmail puremagic.com writes:
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 18 2006
parent Thomas Kuehne <thomas-dloop kuehne.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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 -----BEGIN PGP SIGNATURE----- iD8DBQFEbbS+3w+/yD4P9tIRAhhdAJ9c7TEhVo/tdHvQIYXBrLDrUORTtgCdEKhz almvawZk0/abn3/Bs8FSRrI= =zgJh -----END PGP SIGNATURE-----
May 19 2006