www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11671] New: dget.d(49): Error: ScopeDsymbol dget.__anonymous.__anonymous template std.regex.ctRegex(alias pattern, alias flags = []) is private

reply d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11671

           Summary: dget.d(49): Error: ScopeDsymbol
                    dget.__anonymous.__anonymous template
                    std.regex.ctRegex(alias pattern, alias flags = []) is
                    private
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: timothee.cour2 gmail.com



11:09:49 PST ---
when building from git head I now get, when running make -f posix.mak under
tools:

dget.d(49): Error: ScopeDsymbol dget.__anonymous.__anonymous template
std.regex.ctRegex(alias pattern, alias flags = []) is private

How come those errors aren't automatically caught? isn't there an autotester
for tools repo? I've seen many breakages for tools repo.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 03 2013
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11671


Timothee Cour <timothee.cour2 gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |timothee.cour2 gmail.com
           Severity|normal                      |regression


-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 03 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11671




11:24:37 PST ---
https://github.com/D-Programming-Language/tools/pull/91

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 03 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11671


Martin Nowak <code dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |code dawg.eu



 How come those errors aren't automatically caught? isn't there an autotester
for tools repo? No test suite for tools currently :(, though some work was started for rdmd. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 03 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11671


Dmitry Olshansky <dmitry.olsh gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dmitry.olsh gmail.com



12:20:55 PST ---
Works for me, I run

dmd dget.d

with whatever version of DMD 2.065 alpha I had.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 03 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11671




13:22:07 PST ---

 How come those errors aren't automatically caught? isn't there an autotester
for tools repo? No test suite for tools currently :(, though some work was started for rdmd.
Before even thinking of a writing an elaborate test suite, there should at the very least be a unittest (or other program) that tries to build the various makefiles. Currently that's what failed so many times for me. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 03 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11671




13:24:20 PST ---

 Works for me, I run
 
 dmd dget.d
 
 with whatever version of DMD 2.065 alpha I had.
It failed for me on that step: dmd -c -ofgenerated/osx/64/dget.o dget.d (on osx) and it worked with my pull. (note, I'm building from git head) -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 03 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11671


Martin Nowak <code dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|dget.d(49): Error:          |ctRegex broken
                   |ScopeDsymbol                |
                   |dget.__anonymous.__anonymou |
                   |s template                  |
                   |std.regex.ctRegex(alias     |
                   |pattern, alias flags = [])  |
                   |is private                  |



cat > bug.d << CODE
import std.regex;

void main()
{
    enum rule = ctRegex!"";
}
CODE

dmd -c bug
----
bug.d(5): Error: module bug template std.regex.ctRegex(alias pattern, alias
flags = []) is private
----

Fails for me too.
DMD64 D Compiler v2.065-devel-7088593
druntime-8cfd7f5
phobos-ae34e22

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 03 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11671


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull, rejects-valid



https://github.com/D-Programming-Language/phobos/pull/1745

It's accidentally caused by the change:
https://github.com/D-Programming-Language/phobos/pull/1733/files#diff-f1d62df271dc3289f02f4a1cad365223L5850

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 03 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11671




Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/29099f989477a6aa69e2ee833f322bf9e8dbd680
fix Issue 11671 - ctRegex broken

https://github.com/D-Programming-Language/phobos/commit/ea8ad591213384ef4918c51588c550f1ef2d36a6


Issue 11671 - ctRegex broken

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 04 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11671


monarchdodra gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |monarchdodra gmail.com



Can you confirm this is now fixed?

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 04 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11671




10:23:52 PST ---


 Works for me, I run
 
 dmd dget.d
 
 with whatever version of DMD 2.065 alpha I had.
It failed for me on that step: dmd -c -ofgenerated/osx/64/dget.o dget.d (on osx) and it worked with my pull. (note, I'm building from git head)
You are right, it's a recent regression caused by my refactoring. Sadly we don't have (yet) a way to test accessibility of symbols, I hope that will come with splitting up modules. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 04 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11671


Jakob Ovrum <jakobovrum gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakobovrum gmail.com



---

 You are right, it's a recent regression caused by my refactoring.
 Sadly we don't have (yet) a way to test accessibility of symbols, I hope that
 will come with splitting up modules.
Technically we can test it with `__traits(getProtection, symbol)`. This is probably the kind of thing that would become more practical with a more advanced testing library than the barebones we get by default. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 04 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11671






 You are right, it's a recent regression caused by my refactoring.
 Sadly we don't have (yet) a way to test accessibility of symbols, I hope that
 will come with splitting up modules.
Technically we can test it with `__traits(getProtection, symbol)`. This is probably the kind of thing that would become more practical with a more advanced testing library than the barebones we get by default.
Another (simpler) solution would be to include "programs" with phobos that are part of the testing suite. Not only would it cover things a bit more "real-world"-ish then the "unitary" "unittests", but it would also cover the public/private issues (you don't cover with unittests), as well as make sure it still works outside of a "version(unittest)" case (we've had a couple of these too). Currently, the closest we have is "dmd"'s testing suite: I've seen more than a couple of additions to phobos that passed phobo's test's with flying colors, but *broke* dmd's test suite: Specifically because dmd's test suite is an actual program written in D. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 04 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11671




Commit pushed to 2.065 at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/d1800fea048f80071573ddc197f8922cf919a662


Issue 11671 - ctRegex broken

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 09 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11671


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 09 2013
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11671




Commits pushed to 2.065 at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/29099f989477a6aa69e2ee833f322bf9e8dbd680
fix Issue 11671 - ctRegex broken

https://github.com/D-Programming-Language/phobos/commit/ea8ad591213384ef4918c51588c550f1ef2d36a6


-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 19 2013