View mode: basic / threaded / horizontal-split · Log in · Help
January 07, 2013
[Issue 9276] New: regression(2.061): Forward reference error
http://d.puremagic.com/issues/show_bug.cgi?id=9276

          Summary: regression(2.061): Forward reference error
          Product: D
          Version: D2
         Platform: All
       OS/Version: All
           Status: NEW
         Severity: regression
         Priority: P2
        Component: DMD
       AssignedTo: nobody@puremagic.com
       ReportedBy: timon.gehr@gmx.ch


--- Comment #0 from timon.gehr@gmx.ch 2013-01-06 20:34:55 PST ---
Created an attachment (id=1175)
Repro test case.

Compiles with 2.060, fails to compile with 2.061.

run 'dmd parser'

The test case is also added as an attachment.

module declaration;

import semantic, visitors, util;

class Declaration{ mixin DownCastMethods!TemplateDecl; }
class TemplateDecl: OverloadableDecl{ mixin Visitors; }

module expression;

import parser;
import util;

class Node{
   mixin DownCastMethods!Declaration;

}

class Expression: Node{
}

module hashtable;module parser;
public import expression, declaration;

module semantic;

class Declaration{
   mixin Visitors;
}

template Semantic(T) {
private:
   struct {
       import hashtable;
   }

}



import visitors;

class OverloadableDecl: Declaration{
}

module type;

import parser;
class Type: Expression{ } // <- note to Walter.

class BasicType: Type{ }

module util;

string _dgliteral(T...)(){foreach(t;T) return t.stringof; assert(0); }
template DownCastMethods(T...){
   enum x = _dgliteral!T;
}

module visitors;

template Visitors(){
mixin Semantic!(typeof(this));
   mixin DeepDup!(typeof(this));
}

import type;
template DeepDup(T) if(is(T: BasicType)){}
template DeepDup(T) {}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 13, 2013
[Issue 9276] regression(2.061): Forward reference error
http://d.puremagic.com/issues/show_bug.cgi?id=9276


Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

          What    |Removed                     |Added
----------------------------------------------------------------------------
                CC|                            |andrej.mitrovich@gmail.com


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-01-12 19:20:51 PST ---
Introduced by commit 21c27b33e0111ed19c267517bf7efaba8def502e

commit 21c27b33e0111ed19c267517bf7efaba8def502e
Author: Walter Bright <walter@walterbright.com>
Date:   Tue Nov 13 02:29:20 2012 -0800

   fix another fwd ref bug

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 31, 2013
[Issue 9276] regression(2.061): Forward reference error
http://d.puremagic.com/issues/show_bug.cgi?id=9276


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

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


--- Comment #2 from Kenji Hara <k.hara.pg@gmail.com> 2013-01-31 06:55:19 PST ---
https://github.com/D-Programming-Language/dmd/pull/1588

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 31, 2013
[Issue 9276] regression(2.061): Forward reference error
http://d.puremagic.com/issues/show_bug.cgi?id=9276



--- Comment #3 from github-bugzilla@puremagic.com 2013-01-31 11:20:53 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/4d3c753525d543769a8240d576b96fbb15676da7
fix Issue 9276 - regression(2.061): Forward reference error

https://github.com/D-Programming-Language/dmd/commit/04902fcc96786f12ac2a2923d80da617d58aac2f
Merge pull request #1588 from 9rnsr/fix9276

Issue 9276 - regression(2.061): Forward reference error

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 31, 2013
[Issue 9276] regression(2.061): Forward reference error
http://d.puremagic.com/issues/show_bug.cgi?id=9276


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: -------
January 31, 2013
[Issue 9276] regression(2.061): Forward reference error
http://d.puremagic.com/issues/show_bug.cgi?id=9276



--- Comment #4 from timon.gehr@gmx.ch 2013-01-31 12:07:35 PST ---
Great, now I can upgrade. Thanks a lot!

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Top | Discussion index | About this forum | D home