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]

g++ internal compiler error on i686 Linux system


Both the g++ -v output and Bar.ii are included in the body of this message
since Bar.ii is small.

Thanks,
Jeff

$ g++ -v --save-temps -c Bar.c++
Reading specs from
/u/lni/Compilers/gcc/2.95.2/i686-pc-linux-gnu/lib/gcc-lib/i686-pc-linux-gnu/
2.95.2/specs
gcc version 2.95.2 19991024 (release)

/u/lni/Compilers/gcc/2.95.2/i686-pc-linux-gnu/lib/gcc-lib/i686-pc-linux-gnu/
2.95.2/cpp -lang-c++ -v -D__GNUC__=2 -D__GNUG__=2 -D__GNUC_MINOR__=95 -D__cp
lusplus -D__ELF__ -Dunix -D__i386__ -Dlinux -D__ELF__ -D__unix__ -D__i386__ 
-D__linux__ -D__unix -D__linux -Asystem(posix) -D__EXCEPTIONS -Acpu(i386) -A
machine(i386) -Di386 -D__i386 -D__i386__ -Di686 -Dpentiumpro -D__i686 -D__i6
86__ -D__pentiumpro -D__pentiumpro__ Bar.c++ Bar.ii
GNU CPP version 2.95.2 19991024 (release) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:

/u/lni/Compilers/gcc/2.95.2/i686-pc-linux-gnu/lib/gcc-lib/i686-pc-linux-gnu/
2.95.2/../../../../include/g++-3
 /usr/local/include

/u/lni/Compilers/gcc/2.95.2/i686-pc-linux-gnu/lib/gcc-lib/i686-pc-linux-gnu/
2.95.2/../../../../i686-pc-linux-gnu/include

/u/lni/Compilers/gcc/2.95.2/i686-pc-linux-gnu/lib/gcc-lib/i686-pc-linux-gnu/
2.95.2/include
 /usr/include
End of search list.
The following default directories have been omitted from the search path:
End of omitted list.

/u/lni/Compilers/gcc/2.95.2/i686-pc-linux-gnu/lib/gcc-lib/i686-pc-linux-gnu/
2.95.2/cc1plus Bar.ii -quiet -dumpbase Bar.cc -version -o Bar.s
GNU C++ version 2.95.2 19991024 (release) (i686-pc-linux-gnu) compiled by
GNU C version 2.95.2 19991024 (release).
Foo.h: In instantiation of `util::Foo<{anon}><8>':
Bar.c++:6:   instantiated from here
Foo.h:14: Internal compiler error.
Foo.h:14: Please submit a full bug report.
Foo.h:14: See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for
instructions.

Bar.ii -----------------------------------
# 1 "Bar.c++"
# 1 "Bar.h" 1
# 1 "Foo.h" 1
namespace util
{
    template<unsigned> class Foo;
}

template<unsigned MAX>
class util::Foo
{
  public:
    class Baz
    {
    };

    typedef const Baz*	ConstIterator;

    void Func();

    ConstIterator Begin();
    ConstIterator End();
};
# 1 "Bar.h" 2


namespace util
{
    class Bar;
}

class util::Bar
{
  public:
    static const unsigned MAX(8);

    void Func();

  private:
    Foo<MAX>*	_foo_p;
};
# 1 "Bar.c++" 2


void util::Bar::
Func()
{
    _foo_p->Func();
}

--
Jeff Prem
jdp@laurelnetworks.com


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