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


--- Comment #0 from Timothee Cour <timothee.cour2 gmail.com> 2013-12-03
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



--- Comment #1 from Timothee Cour <timothee.cour2 gmail.com> 2013-12-03
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


--- Comment #2 from Martin Nowak <code dawg.eu> 2013-12-03 12:11:37 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. -- 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


--- Comment #3 from Dmitry Olshansky <dmitry.olsh gmail.com> 2013-12-03
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



--- Comment #4 from Timothee Cour <timothee.cour2 gmail.com> 2013-12-03
13:22:07 PST ---
(In reply to comment #2)
 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



--- Comment #5 from Timothee Cour <timothee.cour2 gmail.com> 2013-12-03
13:24:20 PST ---
(In reply to comment #3)
 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                  |


--- Comment #6 from Martin Nowak <code dawg.eu> 2013-12-03 17:10:13 PST ---
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


--- Comment #7 from Kenji Hara <k.hara.pg gmail.com> 2013-12-03 23:38:26 PST ---
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



--- Comment #8 from github-bugzilla puremagic.com 2013-12-04 00:25:32 PST ---
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
Merge pull request #1745 from 9rnsr/fix11671

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


--- Comment #9 from monarchdodra gmail.com 2013-12-04 00:26:49 PST ---
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



--- Comment #10 from Dmitry Olshansky <dmitry.olsh gmail.com> 2013-12-04
10:23:52 PST ---
(In reply to comment #5)
 (In reply to comment #3)
 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


--- Comment #11 from Jakob Ovrum <jakobovrum gmail.com> 2013-12-04 10:26:46 PST
---
(In reply to comment #10)
 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



--- Comment #12 from monarchdodra gmail.com 2013-12-04 13:09:47 PST ---
(In reply to comment #11)
 (In reply to comment #10)
 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



--- Comment #13 from github-bugzilla puremagic.com 2013-12-09 04:04:56 PST ---
Commit pushed to 2.065 at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/d1800fea048f80071573ddc197f8922cf919a662
Merge pull request #1745 from 9rnsr/fix11671

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



--- Comment #14 from github-bugzilla puremagic.com 2013-12-19 06:49:43 PST ---
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
Merge pull request #1745 from 9rnsr/fix11671

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