[Issue 6834] New: std.stdio conflicts with core.stdc.stdio
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Oct 20 11:01:15 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6834
Summary: std.stdio conflicts with core.stdc.stdio
Product: D
Version: D2
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: jlquinn at optonline.net
--- Comment #0 from Jerry Quinn <jlquinn at optonline.net> 2011-10-20 11:00:13 PDT ---
import std.stdio;
import std.c.stdio;
void foo() {
File f = stdin;
int c = getc(f.getFP());
}
~/dmd2/linux/bin64/dmd stdiobug.d
stdiobug.d(5): Error: std.stdio.stdin at
/home/jlquinn/dmd2/linux/bin64/../../src/phobos/std/stdio.d(2191) conflicts
with core.stdc.stdio.stdin at
/home/jlquinn/dmd2/linux/bin64/../../src/druntime/import/core/stdc/stdio.di(262)
My thought is that the names for stdin should be different. Otherwise it makes
it harder to use both stdio and c library features together.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list