This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
GCC C++ bug
- From: Bo Thorsen <bo at sonofthor dot dk>
- To: bugs at x86-64 dot org, gcc at gcc dot gnu dot org
- Date: Tue, 5 Feb 2002 13:52:30 +0100
- Subject: GCC C++ bug
- Organization: SuSE Labs
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