[Issue 10808] New: [REG2.064a] Incorrect typeid template argument should report error

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Aug 12 06:28:18 PDT 2013


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

           Summary: [REG2.064a] Incorrect typeid template argument should
                    report error
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: k.hara.pg at gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg at gmail.com> 2013-08-12 06:28:16 PDT ---
This code fail to compile with 2.063, but doesn't with git head.

template Tuple(alias TPL)
{
    alias TPL Tuple;
}
auto K = Tuple!(typeid(char));

With 2.063:
test.d(5): Error: expression & D10TypeInfo_a6__initZ is not a valid template
value argument
test.d(5): Error: template instance test.Tuple!(& D10TypeInfo_a6__initZ) error
instantiating

With git head:
(no error)

-- 
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