Internal Compiler Error
Martin Sebor
sebor@roguewave.com
Mon Oct 30 08:17:00 GMT 2000
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.
More information about the Gcc-bugs
mailing list