digitalmars.D.bugs - [Issue 14112] New: Phobos git master doesn't build with MSVC-built
- via Digitalmars-d-bugs (35/35) Feb 02 2015 https://issues.dlang.org/show_bug.cgi?id=14112
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 puremagic.com Reporter: thecybershadow 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? --
Feb 02 2015