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

            Bug ID: 67622
           Summary: [6 regression] Solaris/SPARC bootstrap fails compiling
                    stage2 stdc++.h.gch/O2ggnu++0x.gch
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ro at gcc dot gnu.org
                CC: davem at gcc dot gnu.org, ebotcazou at gcc dot gnu.org
  Target Milestone: ---
              Host: sparc-sun-solaris2.*
            Target: sparc-sun-solaris2.*
             Build: sparc-sun-solaris2.*

Between 20150911 and 20150917 (r227886), Solaris/SPARC bootstrap started to
fail
in stage2:

$ /var/gcc/regression/trunk/11-gcc/build/./gcc/xgcc -shared-libgcc
-B/var/gcc/regression/trunk/11-gcc/build/./gcc -nostdinc++
-L/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/src
-L/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/src/.libs
-L/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/libsupc++/.libs
-B/vol/gcc/sparc-sun-solaris2.11/bin/ -B/vol/gcc/sparc-sun-solaris2.11/lib/
-isystem /vol/gcc/sparc-sun-solaris2.11/include -isystem
/vol/gcc/sparc-sun-solaris2.11/sys-include    -x c++-header -nostdinc++ -g -O2 
-I/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/sparc-sun-solaris2.11
-I/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include
-I/vol/gcc/src/hg/trunk/local/libstdc++-v3/libsupc++  -O2 -g -std=gnu++0x
/vol/gcc/src/hg/trunk/local/libstdc++-v3/include/precompiled/stdc++.h -o
sparc-sun-solaris2.11/bits/stdc++.h.gch/O2ggnu++0x.gch
In file included from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/char_traits.h:39:0,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/ios:40,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/istream:38,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/sstream:38,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/complex:45,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/ccomplex:38,
                 from
/vol/gcc/src/hg/trunk/local/libstdc++-v3/include/precompiled/stdc++.h:52:
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/stl_algobase.h:898:68:
error: template definition of non-template 'static bool
std::__lexicographical_compare<_BoolType>::__lc(_II1, _II1, _II2, _II2)'
       __lc(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2)
                                                                    ^
In file included from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/ios:40:0,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/istream:38,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/sstream:38,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/complex:45,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/ccomplex:38,
                 from
/vol/gcc/src/hg/trunk/local/libstdc++-v3/include/precompiled/stdc++.h:52:
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/char_traits.h:145:74:
error: template definition of non-template 'static int
__gnu_cxx::char_traits<_CharT>::compare(const char_type*, const char_type*,
std::size_t)'
     compare(const char_type* __s1, const char_type* __s2, std::size_t __n)
                                                                          ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/char_traits.h:158:32:
error: template definition of non-template 'static std::size_t
__gnu_cxx::char_traits<_CharT>::length(const char_type*)'
     length(const char_type* __p)
                                ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/char_traits.h:169:69:
error: template definition of non-template 'static const char_type*
__gnu_cxx::char_traits<_CharT>::find(const char_type*, std::size_t, const
char_type&)'
     find(const char_type* __s, std::size_t __n, const char_type& __a)
                                                                     ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/char_traits.h:180:65:
error: template definition of non-template 'static
__gnu_cxx::char_traits<_CharT>::char_type*
__gnu_cxx::char_traits<_CharT>::move(__gnu_cxx::char_traits<_CharT>::char_type*,
const char_type*, std::size_t)'
     move(char_type* __s1, const char_type* __s2, std::size_t __n)
                                                                 ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/char_traits.h:189:65:
error: template definition of non-template 'static
__gnu_cxx::char_traits<_CharT>::char_type*
__gnu_cxx::char_traits<_CharT>::copy(__gnu_cxx::char_traits<_CharT>::char_type*,
const char_type*, std::size_t)'
     copy(char_type* __s1, const char_type* __s2, std::size_t __n)
                                                                 ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/char_traits.h:199:58:
error: template definition of non-template 'static
__gnu_cxx::char_traits<_CharT>::char_type*
__gnu_cxx::char_traits<_CharT>::assign(__gnu_cxx::char_traits<_CharT>::char_type*,
std::size_t, __gnu_cxx::char_traits<_CharT>::char_type)'
     assign(char_type* __s, std::size_t __n, char_type __a)
                                                          ^
In file included from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/cassert:43:0,
                 from
/vol/gcc/src/hg/trunk/local/libstdc++-v3/include/precompiled/stdc++.h:33:
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:59:29:
error: template definition of non-template 'void
std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::swap(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)'
     swap(basic_string& __s) _GLIBCXX_NOEXCEPT
                             ^
In file included from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/string:53:0,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/locale_classes.h:40,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/ios_base.h:41,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/ios:42,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/istream:38,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/sstream:38,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/complex:45,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/ccomplex:38,
                 from
/vol/gcc/src/hg/trunk/local/libstdc++-v3/include/precompiled/stdc++.h:52:
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:133:62:
error: template definition of non-template 'std::__cxx11::basic_string<_CharT,
_Traits, _Alloc>::pointer std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::_M_create(std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type&, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type)'
     _M_create(size_type& __capacity, size_type __old_capacity)
                                                              ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:165:29:
error: template definition of non-template 'void
std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_construct(_InIterator,
_InIterator, std::input_iterator_tag)'
      std::input_iterator_tag)
                             ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:208:31:
error: template definition of non-template 'void
std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_construct(_InIterator,
_InIterator, std::forward_iterator_tag)'
      std::forward_iterator_tag)
                               ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:238:43:
error: template definition of non-template 'void
std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::_M_construct(std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type, _CharT)'
     _M_construct(size_type __n, _CharT __c)
                                           ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:255:40:
error: template definition of non-template 'void
std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_assign(const
std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)'
     _M_assign(const basic_string& __str)
                                        ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:281:28:
error: template definition of non-template 'void
std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::reserve(std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type)'
     reserve(size_type __res)
                            ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:312:24:
error: template definition of non-template 'void
std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::_M_mutate(std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type, const _CharT*, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type)'
        size_type __len2)
                        ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:335:44:
error: template definition of non-template 'void
std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::_M_erase(std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type)'
     _M_erase(size_type __pos, size_type __n)
                                            ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:348:37:
error: template definition of non-template 'void
std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::resize(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type,
_CharT)'
     resize(size_type __n, _CharT __c)
                                     ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:360:47:
error: template definition of non-template 'std::__cxx11::basic_string<_CharT,
_Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::_M_append(const _CharT*, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type)'
     _M_append(const _CharT* __s, size_type __n)
                                               ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:382:23:
error: template definition of non-template 'std::__cxx11::basic_string<_CharT,
_Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::_M_replace_dispatch(std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::const_iterator, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::const_iterator, _InputIterator, _InputIterator, std::__false_type)'
      std::__false_type)
                       ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:394:16:
error: template definition of non-template 'std::__cxx11::basic_string<_CharT,
_Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::_M_replace_aux(std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type, _CharT)'
      _CharT __c)
                ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:423:31:
error: template definition of non-template 'std::__cxx11::basic_string<_CharT,
_Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::_M_replace(std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type, const _CharT*, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type)'
         const size_type __len2)
                               ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:475:55:
error: template definition of non-template 'std::__cxx11::basic_string<_CharT,
_Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::copy(_CharT*, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type) const'
     copy(_CharT* __s, size_type __n, size_type __pos) const
                                                       ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:1178:61:
error: template definition of non-template 'std::__cxx11::basic_string<_CharT,
_Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::find(const _CharT*, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type) const'
     find(const _CharT* __s, size_type __pos, size_type __n) const
                                                             ^
In file included from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/cassert:43:0,
                 from
/vol/gcc/src/hg/trunk/local/libstdc++-v3/include/precompiled/stdc++.h:33:
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:1201:45:
error: template definition of non-template 'std::__cxx11::basic_string<_CharT,
_Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::find(_CharT, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type) const'
     find(_CharT __c, size_type __pos) const _GLIBCXX_NOEXCEPT
                                             ^
In file included from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/string:53:0,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/locale_classes.h:40,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/ios_base.h:41,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/ios:42,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/istream:38,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/sstream:38,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/complex:45,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/ccomplex:38,
                 from
/vol/gcc/src/hg/trunk/local/libstdc++-v3/include/precompiled/stdc++.h:52:
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:1219:62:
error: template definition of non-template 'std::__cxx11::basic_string<_CharT,
_Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::rfind(const _CharT*, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type) const'
     rfind(const _CharT* __s, size_type __pos, size_type __n) const
                                                              ^
In file included from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/cassert:43:0,
                 from
/vol/gcc/src/hg/trunk/local/libstdc++-v3/include/precompiled/stdc++.h:33:
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:1240:46:
error: template definition of non-template 'std::__cxx11::basic_string<_CharT,
_Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::rfind(_CharT, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type) const'
     rfind(_CharT __c, size_type __pos) const _GLIBCXX_NOEXCEPT
                                              ^
In file included from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/string:53:0,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/locale_classes.h:40,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/ios_base.h:41,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/ios:42,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/istream:38,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/sstream:38,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/complex:45,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/ccomplex:38,
                 from
/vol/gcc/src/hg/trunk/local/libstdc++-v3/include/precompiled/stdc++.h:52:
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:1257:70:
error: template definition of non-template 'std::__cxx11::basic_string<_CharT,
_Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::find_first_of(const _CharT*, std::__cxx11::basic_string<_CharT,
_Traits, _Alloc>::size_type, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type) const'
     find_first_of(const _CharT* __s, size_type __pos, size_type __n) const
                                                                      ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:1272:69:
error: template definition of non-template 'std::__cxx11::basic_string<_CharT,
_Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::find_last_of(const _CharT*, std::__cxx11::basic_string<_CharT,
_Traits, _Alloc>::size_type, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type) const'
     find_last_of(const _CharT* __s, size_type __pos, size_type __n) const
                                                                     ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:1293:74:
error: template definition of non-template 'std::__cxx11::basic_string<_CharT,
_Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::find_first_not_of(const _CharT*, std::__cxx11::basic_string<_CharT,
_Traits, _Alloc>::size_type, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type) const'
     find_first_not_of(const _CharT* __s, size_type __pos, size_type __n) const
                                                                          ^
In file included from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/cassert:43:0,
                 from
/vol/gcc/src/hg/trunk/local/libstdc++-v3/include/precompiled/stdc++.h:33:
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:1305:58:
error: template definition of non-template 'std::__cxx11::basic_string<_CharT,
_Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::find_first_not_of(_CharT, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type) const'
     find_first_not_of(_CharT __c, size_type __pos) const _GLIBCXX_NOEXCEPT
                                                          ^
In file included from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/string:53:0,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/locale_classes.h:40,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/ios_base.h:41,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/ios:42,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/istream:38,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/sstream:38,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/complex:45,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/ccomplex:38,
                 from
/vol/gcc/src/hg/trunk/local/libstdc++-v3/include/precompiled/stdc++.h:52:
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:1316:73:
error: template definition of non-template 'std::__cxx11::basic_string<_CharT,
_Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::find_last_not_of(const _CharT*, std::__cxx11::basic_string<_CharT,
_Traits, _Alloc>::size_type, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type) const'
     find_last_not_of(const _CharT* __s, size_type __pos, size_type __n) const
                                                                         ^
In file included from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/cassert:43:0,
                 from
/vol/gcc/src/hg/trunk/local/libstdc++-v3/include/precompiled/stdc++.h:33:
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:1337:57:
error: template definition of non-template 'std::__cxx11::basic_string<_CharT,
_Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::find_last_not_of(_CharT, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type) const'
     find_last_not_of(_CharT __c, size_type __pos) const _GLIBCXX_NOEXCEPT
                                                         ^
In file included from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/string:53:0,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/locale_classes.h:40,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/ios_base.h:41,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/ios:42,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/istream:38,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/sstream:38,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/complex:45,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/ccomplex:38,
                 from
/vol/gcc/src/hg/trunk/local/libstdc++-v3/include/precompiled/stdc++.h:52:
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:1357:72:
error: template definition of non-template 'int
std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::compare(std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
const'
     compare(size_type __pos, size_type __n, const basic_string& __str) const
                                                                        ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:1373:40:
error: template definition of non-template 'int
std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::compare(std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&,
std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type,
std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type) const'
      size_type __pos2, size_type __n2) const
                                        ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:1390:32:
error: template definition of non-template 'int
std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(const _CharT*)
const'
     compare(const _CharT* __s) const
                                ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:1405:65:
error: template definition of non-template 'int
std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::compare(std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type, const _CharT*) const'
     compare(size_type __pos, size_type __n1, const _CharT* __s) const
                                                                 ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:1422:22:
error: template definition of non-template 'int
std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::compare(std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type, const _CharT*, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type) const'
      size_type __n2) const
                      ^
In file included from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/locale_classes.h:850:0,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/ios_base.h:41,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/ios:42,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/istream:38,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/sstream:38,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/complex:45,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/ccomplex:38,
                 from
/vol/gcc/src/hg/trunk/local/libstdc++-v3/include/precompiled/stdc++.h:52:
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/locale_classes.tcc:45:46:
error: template definition of non-template 'std::locale::locale(const
std::locale&, _Facet*)'
     locale(const locale& __other, _Facet* __f)
                                              ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/locale_classes.tcc:63:36:
error: template definition of non-template 'std::locale
std::locale::combine(const std::locale&) const'
     combine(const locale& __other) const
                                    ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/locale_classes.tcc:82:60:
error: template definition of non-template 'bool std::locale::operator()(const
std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const
std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&) const'
         const basic_string<_CharT, _Traits, _Alloc>& __s2) const
                                                            ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/locale_classes.tcc:149:76:
error: template definition of non-template 'int
std::__cxx11::collate<_CharT>::_M_compare(const _CharT*, const _CharT*) const'
     collate<_CharT>::_M_compare(const _CharT*, const _CharT*) const throw ()
                                                                            ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/locale_classes.tcc:155:80:
error: template definition of non-template 'std::size_t
std::__cxx11::collate<_CharT>::_M_transform(_CharT*, const _CharT*,
std::size_t) const'
     collate<_CharT>::_M_transform(_CharT*, const _CharT*, size_t) const throw
()
                                                                               
^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/locale_classes.tcc:162:51:
error: template definition of non-template 'virtual int
std::__cxx11::collate<_CharT>::do_compare(const _CharT*, const _CharT*, const
_CharT*, const _CharT*) const'
         const _CharT* __lo2, const _CharT* __hi2) const
                                                   ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/locale_classes.tcc:200:58:
error: template definition of non-template 'virtual
std::__cxx11::collate<_CharT>::string_type
std::__cxx11::collate<_CharT>::do_transform(const _CharT*, const _CharT*)
const'
     do_transform(const _CharT* __lo, const _CharT* __hi) const
                                                          ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/locale_classes.tcc:256:53:
error: template definition of non-template 'virtual long int
std::__cxx11::collate<_CharT>::do_hash(const _CharT*, const _CharT*) const'
     do_hash(const _CharT* __lo, const _CharT* __hi) const
                                                     ^
In file included from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/ios:43:0,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/istream:38,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/sstream:38,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/complex:45,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/ccomplex:38,
                 from
/vol/gcc/src/hg/trunk/local/libstdc++-v3/include/precompiled/stdc++.h:52:
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/streambuf:827:43:
error: template definition of non-template 'std::basic_streambuf<_CharT,
_Traits>::basic_streambuf(const std::basic_streambuf<_CharT, _Traits>&)'
     basic_streambuf(const basic_streambuf&) = default;
                                           ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/streambuf:832:37:
error: template definition of non-template 'std::basic_streambuf<_CharT,
_Traits>& std::basic_streambuf<_CharT, _Traits>::operator=(const
std::basic_streambuf<_CharT, _Traits>&)'
     operator=(const basic_streambuf&) = default;
                                     ^
In file included from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/streambuf:850:0,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/ios:43,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/istream:38,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/sstream:38,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/complex:45,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/ccomplex:38,
                 from
/vol/gcc/src/hg/trunk/local/libstdc++-v3/include/precompiled/stdc++.h:52:
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/streambuf.tcc:46:42:
error: template definition of non-template 'virtual std::streamsize
std::basic_streambuf<_CharT, _Traits>::xsgetn(std::basic_streambuf<_CharT,
_Traits>::char_type*, std::streamsize)'
     xsgetn(char_type* __s, streamsize __n)
                                          ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/streambuf.tcc:80:48:
error: template definition of non-template 'virtual std::streamsize
std::basic_streambuf<_CharT, _Traits>::xsputn(const char_type*,
std::streamsize)'
     xsputn(const char_type* __s, streamsize __n)
                                                ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/streambuf.tcc:
In instantiation of 'class std::basic_streambuf<char>':
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/streambuf.tcc:149:25:
  required from here
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/streambuf.tcc:45:5:
internal compiler error: in tsubst_decl, at cp/pt.c:11516
     basic_streambuf<_CharT, _Traits>::
     ^

This seems to be a miscompilation, and Solaris/x86 bootstrap is fine from the
same tree.  I'm now starting a reghunt.

  Rainer

Reply via email to