Summary: Overzealous recursive template expansion protection.
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Gareth Charnock <> 2010-11-03 14:54:17 
PDT ---
The following will not compile even though templateFunc is not automatically
instantiated with A (there is no actual danger of a stack overflow).

struct A(T1) {
    void templateFunc(T2)(T2 a) {
         alias A!(typeof(this)) error;

void main() {
     A!int a;

Error: recursive template expansion for template argument A!(int)

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to