https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62224

--- Comment #5 from Chris Clayton <chris2553 at googlemail dot com> ---
I reverted the code change from r214208 with the following patch:

--- gcc-4.9-20140827-orig/gcc/cp/decl2.c        2014-08-20 02:54:40.000000000
+0100
+++ gcc-4.9-20140827/gcc/cp/decl2.c     2014-09-01 21:07:29.799905722 +0100
@@ -1934,11 +1934,6 @@ decl_needed_p (tree decl)
   if (flag_keep_inline_dllexport
       && lookup_attribute ("dllexport", DECL_ATTRIBUTES (decl)))
     return true;
-  /* Virtual functions might be needed for devirtualization.  */
-  if (flag_devirtualize
-      && TREE_CODE (decl) == FUNCTION_DECL
-      && DECL_VIRTUAL_P (decl))
-    return true;
   /* Otherwise, DECL does not need to be emitted -- yet.  A subsequent
      reference to DECL might cause it to be emitted later.  */
   return false;

With this patch applied to gcc-4.9-20140827, I can now build qt-creator-3.2.0
successfully.

Reply via email to