Bug 6675 – Regression(2.054) ICE(glue.c) template parameter deduction with errors gagged

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2011-09-15T04:49:00Z
Last change time
2015-06-09T05:12:02Z
Keywords
ice-on-valid-code
Assigned to
nobody
Creator
clugdbug

Comments

Comment #0 by clugdbug — 2011-09-15T04:49:37Z
Found while attempting to reduce bug 5932. This works on 2.053 and earlier, fails on 2.054 and 2.055. void receive(T)( T x ) { static assert(0); get( x ); } void get(T)( T vals ) { void onStandardMsg() { } } static assert(!is(typeof( { receive(3); }() ))); Assertion failure: 'semanticRun == PASSsemantic3done' on line 581 in file 'glue. c' Seems to be related to template parameter deduction, since it compiles without error if you change get(x); into get!(T)(x);
Comment #1 by bugzilla — 2011-09-20T13:16:22Z