[Issue 242] New: template implicit template properties doesn't work

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jul 6 09:01:29 PDT 2006


http://d.puremagic.com/issues/show_bug.cgi?id=242

           Summary: template implicit template properties doesn't work
           Product: D
           Version: 0.162
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: oskar.linde at gmail.com


template x() { template x() { const x = 1; } }
void main() { const y = x!()!(); }

Gives:
test.d(2): semicolon expected following auto declaration, not '!'
test.d(2): found '!' instead of statement

Instead, trying const y = x!().x!(), gives 

test.d(2): template identifier x is not a member of x

I can't see any way to instantiate the inner template when it is "an implicit
template property".


-- 




More information about the Digitalmars-d-bugs mailing list