This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
c++/151: Re: g++ internal compiler error on i686 Linux system
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/151: Re: g++ internal compiler error on i686 Linux system
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Tue, 28 Mar 2000 11:01:01 +0200
- References: <LPBBLOCFDIGCPDPEKEINOEMJCCAA.jdp@laurelnetworks.com>
- Resent-Cc: gcc-prs at gcc dot gnu dot org, jdp at laurelnetworks dot com
- Resent-Reply-To: gcc-gnats@gcc.gnu.org, "Martin v. Loewis" <martin@loewis.home.cs.tu-berlin.de>
>Number: 151
>Category: c++
>Synopsis: g++ internal compiler error on i686 Linux system
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: analyzed
>Class: ice-on-legal-code
>Submitter-Id: net
>Arrival-Date: Tue Mar 28 01:16:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator: "Jeffrey Prem" <jdp@laurelnetworks.com>
>Release: 2.95.2
>Organization:
>Environment:
>Description:
Date: Mon, 27 Mar 2000 18:10:39 -0500
Original-Message-ID: <LPBBLOCFDIGCPDPEKEINOEMJCCAA.jdp@laurelnetworks.com>
Importance: Normal
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.
Jeff Prem
jdp@laurelnetworks.com
>How-To-Repeat:
# 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();
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: