This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/62224] [4.9 Regression] Possible regression in gcc-4.9-20140820


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

--- Comment #9 from Chris Clayton <chris2553 at googlemail dot com> ---
That seems odd to me, although I'm happy to be told I'm wrong. I base this on
the fact that reverting the code change from r214208 permits a successful
build. MoreOver, in both the failed and sucessful builds, ensureUpdated is
present in cppmodelmanager.o and that is linked into libCppTools.so as can be
seen by:

[chris:~/rpm/build/qt-creator-opensource-src-3.2.0-fail/qt-creator-3.2.0-build]$
nm lib/qtcreator/plugins/libCppTools.so | grep ensureUpdated
000af430 t _ZN8CppTools8Internal15CppModelManager13ensureUpdatedEv
[chris:~/rpm/build/qt-creator-opensource-src-3.2.0-fail/qt-creator-3.2.0-build]$
cd ~/rpm/build/qt-creator-opensource-src-3.2.0/qt-creator-3.2.0-build
[chris:~/rpm/build/qt-creator-opensource-src-3.2.0/qt-creator-3.2.0-build]$ nm
lib/qtcreator/plugins/libCppTools.so | grep ensureUpdated
000af640 t _ZN8CppTools8Internal15CppModelManager13ensureUpdatedEv

cppmodelmanager.0 is listed (in Makefile) as an object to be included in the
link of libCppTools.so in both builds.

I don't know whether it will be of any help, but I've diffed cppmodelmanager.ii
produced in the two builds and the output is:

--- cppmodelmanager.ii.good     2014-09-02 21:25:02.559799184 +0100
+++ cppmodelmanager.ii.fail     2014-08-22 08:27:06.000000000 +0100
@@ -18581,23 +18581,7 @@ namespace std __attribute__ ((__visibili
     inline basic_istream<_CharT, _Traits>&
     getline(basic_istream<_CharT, _Traits>& __is,
      basic_string<_CharT, _Traits, _Alloc>& __str)
-    { return std::getline(__is, __str, __is.widen('\n')); }
-
-
-
-  template<typename _CharT, typename _Traits, typename _Alloc>
-    inline basic_istream<_CharT, _Traits>&
-    getline(basic_istream<_CharT, _Traits>&& __is,
-     basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim)
-    { return std::getline(__is, __str, __delim); }
-
-
-  template<typename _CharT, typename _Traits, typename _Alloc>
-    inline basic_istream<_CharT, _Traits>&
-    getline(basic_istream<_CharT, _Traits>&& __is,
-     basic_string<_CharT, _Traits, _Alloc>& __str)
-    { return std::getline(__is, __str); }
-
+    { return getline(__is, __str, __is.widen('\n')); }

   template<>
     basic_istream<char>&
@@ -19695,7 +19679,7 @@ namespace __gnu_cxx __attribute__ ((__vi


 }
-# 2851 "/usr/include/c++/4.9.2/bits/basic_string.h" 2 3
+# 2835 "/usr/include/c++/4.9.2/bits/basic_string.h" 2 3

 namespace std __attribute__ ((__visibility__ ("default")))
 {
@@ -20103,7 +20087,7 @@ namespace std __attribute__ ((__visibili


 }
-# 3069 "/usr/include/c++/4.9.2/bits/basic_string.h" 2 3
+# 3053 "/usr/include/c++/4.9.2/bits/basic_string.h" 2 3

 namespace std __attribute__ ((__visibility__ ("default")))
 {
@@ -20174,7 +20158,7 @@ namespace std __attribute__ ((__visibili
   template<>
     struct __is_fast_hash<hash<u32string>> : std::false_type
     { };
-# 3173 "/usr/include/c++/4.9.2/bits/basic_string.h" 3
+# 3157 "/usr/include/c++/4.9.2/bits/basic_string.h" 3

 }
 # 53 "/usr/include/c++/4.9.2/string" 2 3


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]