[Issue 2962] ICE(glue.c) or bad codegen passing variable as template value parameter
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Aug 14 00:43:44 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2962
Don <clugdbug at yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |accepts-invalid, wrong-code
CC| |clugdbug at yahoo.com.au
Summary|Assertion in glue.c fails |ICE(glue.c) or bad codegen
| |passing variable as
| |template value parameter
Severity|normal |major
--- Comment #6 from Don <clugdbug at yahoo.com.au> 2009-08-14 00:43:43 PDT ---
Fundamentally this is an accepts-invalid bug, it shouldn't reach the code
generation stage where the ICE occurs. Here's a test case which shouldn't
compile.
There's a chance this could be a regression.
---
T bar(T)(T y) {
return baz!(T, y)();
}
T baz(T, T z)() {
return z*z;
}
void main() {
assert(bar(4)!=0);
}
--
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