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]

Re: Internal Compiler Error


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.

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