This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Internal Compiler Error
- To: Philippe Bouchard <philippeb at corel dot com>
- Subject: Re: Internal Compiler Error
- From: Martin Sebor <sebor at roguewave dot com>
- Date: Mon, 30 Oct 2000 09:21:37 -0700
- CC: gcc-bugs <gcc-bugs at gcc dot gnu dot org>
- Organization: Rogue Wave Software, Inc.
- References: <39FD5440.E999E9D9@corel.com>
Philippe Bouchard wrote:
>
> Program:
> #include <list>
>
>
> using namespace std;
>
> struct A
> {
> };
>
> int main()
> {
> class list<class A>::iterator i;
^^^^^
FYI: this assumes that list<A>::iterator is a class which isn't
necessarily true (it could be, and in the case of STLport it actually
is, a template, in which case the code is ill-formed). No argument that
the ICE is a bug, though.
Regards
Martin
> }
>
> Outputs:
> explicitclass.cpp: In function `int main()':
> explicitclass.cpp:12: Internal compiler error.
> explicitclass.cpp:12: Please submit a full bug report.
> explicitclass.cpp:12: See <URL:
> http://www.gnu.org/software/gcc/bugs.html
> <http://www.gnu.org/software/gcc/bugs.html> > for instructions.
>
> Under:
> Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.2/specs
> gcc version 2.95.2 20000220 (Debian GNU/Linux)
>
> Thank you.