This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
ICE on further processing erroneously declared variable
- To: gcc-bugs at gcc dot gnu dot org
- Subject: ICE on further processing erroneously declared variable
- From: Marco Franzen <marcof at thyron dot com>
- Date: Fri, 6 Oct 2000 16:19:31 +0100
- Organization: Thyron Limited, UK
- Reply-To: Marco dot Franzen at Thyron dot com
Both post-2.95.2 snapshots I've tried give an ICE on the (incorrect) code
below.
version 2.97 20001006
(on http://www.codesourcery.com/cgi-bin/gcc-compile.py)
says
=======================================
/tmp/@24951.1: In function `int main(int, char **)':
/tmp/@24951.1:14: aggregate `my_iter first' has incomplete type and cannot
be initialized
/tmp/@24951.1:15: Internal error #390.
/tmp/@24951.1:15: Internal compiler error in , at :-1073747064
Please submit a full bug report.
========================================
while my locally installed
version 2.96 20000814
gives better internal dignosis (of hopefully the same problem) saying
======================================
tst.ii: In function `int main (int, char **)':
tst.ii:14: aggregate `my_iter first' has incomplete type and cannot be
initialized
tst.ii:15: Tree check: expected class 't', have 'x' (error_mark)
tst.ii:15: Internal compiler error in build_new_op, at
../egcs-20000814/gcc/cp/call.c:3206
Please submit a full bug report.
=======================================
Here is the input file:
=======================================
struct input_iterator_tag;
template <typename BaseIterator, typename TPcategory>
class MyIterator;
template <typename BaseIterator>
class MyIterator<BaseIterator, input_iterator_tag>;
typedef MyIterator<unsigned char *, input_iterator_tag> my_iter;
int
main (int, char *[])
{
my_iter first;
first + 1;
}
=======================================
Cheers
- Marco
-----------------------------------------------------------------
This email is confidential and intended solely for the use of the
individual to whom it is addressed.
Any views or opinions presented are solely those of the author
and do not necessarily represent those of Thyron Limited.
If you are not the intended recipient then please be advised
that you have received this email in error and that any use,
dissemination, forwarding, printing or copying of this email
is strictly prohibited.
If you have received this email in error, please notify the
Thyron IT Administrator on +44 (0)1923 236 050 or
send an email to mail-admin@thyron.com.
Thank You