This is the mail archive of the gcc@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]

GCC C++ bug


This is an x86-64 specific problem.

I have a testcase here, that fails on a fresh gcc checkout. The template 
returned gets mode VOIDmode, and this is not good. The test is a preprocessed 
and simplified libstdc++/src/globals.cc

namespace std
{
  template<typename _StateT>
    class fpos
    {
    private:
      _StateT _M_st;

    public:
      _StateT
      state() const { return _M_st; }

    };
}

bo@pluto:518> /work/crossbuild/build/ct_gpp/gcc/cc1plus globals.ii -quiet
globals.ii: In member function `_StateT std::fpos<_StateT>::state() const':
globals.ii:11: Internal compiler error in classify_argument, at
   config/i386/i386.c:1826

Bo.

-- 

     Bo Thorsen                 |   Praestevejen 4
     Free software developer    |   5290 Marslev
     SuSE Labs                  |   Denmark


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