[Issue 9292] New: hasNestedArgs wrong result for nested template literal

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jan 10 11:25:04 PST 2013


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

           Summary: hasNestedArgs wrong result for nested template literal
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: johannespfau at gmail.com


--- Comment #0 from Johannes Pfau <johannespfau at gmail.com> 2013-01-10 11:25:00 PST ---
Created an attachment (id=1178)
test case

When compiling testcase.d, hasNestedArgs returns these results:

topNIndex!() nested=0
Test!(indirectLess) nested=1
BinaryHeap!(Test()) nested=0

AFAIK BinaryHeap!(Test()) should also be marked as nested, as it needs
Test!(indirectLess) which is nested?

I'm not sure if this causes a real problem in dmd, but we use
hasNestedArgs/isnested in gdc to tell the backend if the instantiated template
is accessible from other modules.

Therefore this test case currently ICEs gdc (also depends on gcc version. Some
are more picky)

BTW: Would it be OK to mark this as "blocker", as it blocks gdc from compiling
that test case?

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


More information about the Digitalmars-d-bugs mailing list