[Issue 6733] Regression(2.054) ICE(cod2.c) struct literals as template arguments

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Oct 21 01:20:11 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=6733



--- Comment #5 from Don <clugdbug at yahoo.com.au> 2011-10-21 01:19:10 PDT ---
Actually this is more a pseudo-regresssion, it's just an expansion of an
existing bug into a few more cases. Walter's commit has nothing to do with the
root cause. The test case below fails in exactly the same way on 2.025 (but
passed on 2.023).

struct Zero { int x; }
void test(T)(T a, T b) pure nothrow { } 
void main() { test(Zero(7), Zero(4)); }

The bug is triggered when test() gets completely optimized away because it's
pure nothrow.

-- 
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