www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 6675] New: Regression(2.054) ICE(glue.c) template parameter deduction with errors gagged

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

           Summary: Regression(2.054) ICE(glue.c) template parameter
                    deduction with errors gagged
           Product: D
           Version: D1 & D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: clugdbug yahoo.com.au



Found while attempting to reduce bug 5932. This works on 2.053 and earlier,
fails on 2.054 and 2.055.

void receive(T)( T x ) {
    static assert(0);
    get( x );
}

void get(T)( T vals ) {
    void onStandardMsg() {  }
}

static assert(!is(typeof(
    {
        receive(3);
    }()
)));

Assertion failure: 'semanticRun == PASSsemantic3done' on line 581 in file
'glue.
c'

Seems to be related to template parameter deduction, since it compiles without
error if you change
  get(x);
into
  get!(T)(x);

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 15 2011
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6675


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |regression


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 15 2011
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6675


Walter Bright <bugzilla digitalmars.com> changed:

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



13:16:22 PDT ---
https://github.com/D-Programming-Language/dmd/commit/6dc84fd7f2f43d28039d08bf80658cffc97e00f0

https://github.com/D-Programming-Language/dmd/commit/cf7a78423f426fb0d2d62b0af821129f1a4077a1

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 20 2011