[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gcc-bugs
Subject:    Re: Internal Compiler Error
From:       Martin Sebor <sebor () roguewave ! com>
Date:       2000-10-30 16:21:37
[Download RAW message or body]

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.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic