Bug 60 – Passing bool to variadic function in debug build fails to link

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2006-03-21T20:29:00Z
Last change time
2014-02-15T02:08:12Z
Keywords
link-failure
Assigned to
bugzilla
Creator
ericanderton

Comments

Comment #0 by ericanderton — 2006-03-21T20:29:24Z
import std.stdio; void main(){ writefln("",true); } ------------------------------ OPTLINK (R) for Win32 Release 7.50B1 Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved bug.obj(bug) Error 42: Symbol Undefined __init_10TypeInfo_x
Comment #1 by thomas-dloop — 2006-03-24T08:30:44Z
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 [email protected] schrieb am 2006-03-22: > Summary: Passing bool to variadic function in debug build fails > to link [snip] > import std.stdio; > > void main(){ > writefln("",true); > } This is a Windows-only bug. Added to DStress as http://dstress.kuehne.cn/run/t/typeid_89.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFEJA7W3w+/yD4P9tIRAvJwAJ9KcqOlylQapHv6W5Wy15Mv+ZblJgCeM5uy ZvsJUJmVVb6/f5ipTB6rY9o= =ZLDV -----END PGP SIGNATURE-----
Comment #2 by ericanderton — 2006-03-24T14:13:05Z
//Added code from Thomas' Dstress test. I find this much more succinct. int main(){ Typeid t = typeid(bit); assert(t !== null); return 0; }
Comment #3 by matti.niemenmaa+dbugzilla — 2006-04-03T05:47:19Z
Fixed in 0.151.
Comment #4 by matti.niemenmaa+dbugzilla — 2006-04-03T05:56:01Z
(In reply to comment #3) > Fixed in 0.151. > Correction: works on Windows for me, and evidently also for Walter.