This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ipa/82801] [6/7/8 Regression] Internal compiler error with Eigen and __attribute__((always_inline, flatten))
- From: "trippels at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 02 Nov 2017 07:39:21 +0000
- Subject: [Bug ipa/82801] [6/7/8 Regression] Internal compiler error with Eigen and __attribute__((always_inline, flatten))
- Auto-submitted: auto-generated
- References: <bug-82801-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82801
--- Comment #3 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
node->decl is NULL, so perhaps:
diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c
index b8e65e2fa7ec..1713c41d4369 100644
--- a/gcc/ipa-inline.c
+++ b/gcc/ipa-inline.c
@@ -2425,7 +2425,7 @@ ipa_inline (void)
entry of cycles, possibly cloning that entry point and
try to flatten itself turning it into a self-recursive
function. */
- if (lookup_attribute ("flatten",
+ if (node->decl && lookup_attribute ("flatten",
DECL_ATTRIBUTES (node->decl)) != NULL)
{
if (dump_file)