[Issue 14112] New: Phobos git master doesn't build with MSVC-built compiler (DIP25)
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Feb 2 07:27:09 PST 2015
https://issues.dlang.org/show_bug.cgi?id=14112
Issue ID: 14112
Summary: Phobos git master doesn't build with MSVC-built
compiler (DIP25)
Product: D
Version: D2
Hardware: x86_64
OS: Windows
Status: NEW
Keywords: rejects-valid
Severity: regression
Priority: P1
Component: DMD
Assignee: nobody at puremagic.com
Reporter: thecybershadow at gmail.com
If you build a 64-bit dmd.exe from git master with Visual Studio, Phobos
doesn't build any more. I get an error inside unicode_tables.d.
Here's a reduced test case:
///////// test.d ////////
struct FullCaseEntry
{
dchar[3] seq;
auto value() return
{
return seq[0..1];
}
}
/////////////////////////
Compiler output:
test.d(5): Error: function declaration without return type. (Note that
constructors are always named 'this')
test.d(6): Error: no identifier for declarator value()return
Miraculously, it's fixed if "return" is replaced with "@return".
Sounds like an uninitialized variable?
--
More information about the Digitalmars-d-bugs
mailing list