<html>
<head>
<base href="http://bugzilla.gdcproject.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - ICE using @attribute("forceinline")"
href="http://bugzilla.gdcproject.org/show_bug.cgi?id=108#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - ICE using @attribute("forceinline")"
href="http://bugzilla.gdcproject.org/show_bug.cgi?id=108">bug 108</a>
from <span class="vcard"><a class="email" href="mailto:ibuclaw@gdcproject.org" title="Iain Buclaw <ibuclaw@gdcproject.org>"> <span class="fn">Iain Buclaw</span></a>
</span></b>
<pre>Looks like the frontend devs changed the behaviours of optimize/interpret,
again. This'll need adding to the testsuite to catch any future changes.
*PATCH*
diff --git a/gcc/d/d-codegen.cc b/gcc/d/d-codegen.cc
index b0a50a4..a7acb92 100644
--- a/gcc/d/d-codegen.cc
+++ b/gcc/d/d-codegen.cc
@@ -830,8 +826,10 @@ build_attributes (Expressions *in_attrs)
for (size_t i = 0; i < in_attrs->dim; i++)
{
Expression *attr = (*in_attrs)[i]->optimize (WANTexpand);
- Dsymbol *sym = attr->type->toDsymbol (0);
+ if (attr->op == TOKcall)
+ attr = attr->ctfeInterpret();
+ Dsymbol *sym = attr->type->toDsymbol (0);
if (!sym)
continue;</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>