Bug 14362 – DMD should compile SDC test0159.d

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-03-28T16:55:00Z
Last change time
2015-04-11T06:40:10Z
Keywords
rejects-valid
Assigned to
nobody
Creator
shammah.chancellor

Comments

Comment #0 by shammah.chancellor — 2015-03-28T16:55:55Z
``` > rdmd test0159.d test0159.d(11): Error: template instance foo!true does not match template declaration foo(alias T U, T)() test0159.d(11): Error: template instance foo!10 does not match template declaration foo(alias T U, T)() test0159.d(11): Error: template instance foo!(5) does not match template declaration foo(alias T U, T)() ``` ```test0159.d //T compiles:yes //T has-passed:yes //T retval:25 // template typed alias parameter (value) auto foo(alias T U, T)() { return cast(int) (U + T.sizeof); } int main() { return foo!true() + foo!10() + foo!I(); } enum I = 5; ```
Comment #1 by yebblies — 2015-04-11T06:40:10Z
This looks like the same thing as 14359 *** This issue has been marked as a duplicate of issue 14359 ***