[Issue 6675] New: Regression(2.054) ICE(glue.c) template parameter deduction with errors gagged
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Sep 15 04:49:58 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6675
Summary: Regression(2.054) ICE(glue.c) template parameter
deduction with errors gagged
Product: D
Version: D1 & D2
Platform: Other
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: clugdbug at yahoo.com.au
--- Comment #0 from Don <clugdbug at yahoo.com.au> 2011-09-15 04:49:37 PDT ---
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);
--
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