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: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Kenji Hara <[email protected]> 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: -------