www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 7794] New: Sea of errors when calling regex() after compile error

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

           Summary: Sea of errors when calling regex() after compile error
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: kekeniro2 yahoo.co.jp


--- Comment #0 from kekeniro2 yahoo.co.jp 2012-03-29 09:17:42 PDT ---
I am working on D2059 head.

Building the following code, I get 60+ lines of error message.
D2058 outputs only one error.

---------------------------------------
import std.regex;
void main()
{
  0;         // to cause the _first_ compile error
  regex("a");
}
---------------------------------------

I believe that it relates to the issue 7557.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 29 2012
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7794


kekeniro2 yahoo.co.jp changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic


--- Comment #1 from kekeniro2 yahoo.co.jp 2012-03-29 09:25:41 PDT ---
Reduced code is here.
( I wanted to reduce more but couldn't )
---------------------------------------------

// from std.typetuple
template TypeTuple(T...) {
  alias T TypeTuple;
}

template staticMap( T...) {
  static if (T.length == 0) {
    alias TypeTuple!() staticMap;
  } else {
    alias TypeTuple!( staticMap!( T[1 .. $] ) ) staticMap;
  }
}

// from std.typecons
struct Tuple(U) {
  template FieldSpec() { }

  template parseSpecs(T...) {
    static if (T.length == 0) {
      alias TypeTuple!() parseSpecs;
    } else {
      alias TypeTuple!( FieldSpec!(),
                      parseSpecs!( T[1 .. $] ) ) parseSpecs;
    }
  }

  alias staticMap!( parseSpecs!U ) Types;
}

// instantiating
void main()
{
  0; // to cause the _first_ error
  Tuple!int a;
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 29 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7794


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clugdbug yahoo.com.au


--- Comment #2 from Don <clugdbug yahoo.com.au> 2012-03-29 12:41:59 PDT ---
https://github.com/D-Programming-Language/dmd/pull/849

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 29 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7794



--- Comment #3 from github-bugzilla puremagic.com 2012-03-29 13:35:32 PDT ---
Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/2707f8a7f2451a83f40b3644be2a09a8a5649d93
Merge pull request #849 from donc/bug7794

Fix issue 7794 Sea of errors when calling regex() after compile error

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 29 2012
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7794


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla digitalmars.com
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 29 2012