[Issue 12044] Invalid code gen causes segfault
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Feb 4 15:00:13 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12044
Vladimir Panteleev <thecybershadow at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |wrong-code
--- Comment #4 from Vladimir Panteleev <thecybershadow at gmail.com> 2014-02-05 01:00:09 EET ---
Reduced test case:
//////////////////////////////////////////
struct S(T)
{
void f()()
{
new T[1];
}
bool opEquals(O)(O)
{
f();
}
}
void main()
{
()
{
enum E { e }
auto arr = [E.e];
S!E s;
}
();
}
//////////////////////////////////////////
On Win64, this produces the error:
test.exe.obj : fatal error LNK1179: invalid or corrupt file: duplicate COMDAT
'_D45TypeInfo_AE4test4mainFZv9__lambda1FNaNbNfZv1E6__initZ'
As I suspected, the Phobos change only uncovered a compiler problem.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list