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]

ICE (eg 20000807): current_template_args bombs in TMPL_PARMS_DEPTH


The following source code fragment  triggers an internal compiler error in
both snapshots I tried (giving even the same line number):

gcc version 2.96 20000807 (experimental)
gcc version 2.96 20000717 (experimental)

====================================
template <Forgot_Class_or_Typename_Keyword> 
class Bad {};

class Blah {
 Bad<int> foo;
};
====================================

tst.cpp:1: parse error before `>'
tst.cpp:4: Tree check: expected tree_list, have error_mark
tst.cpp:4: Internal compiler error in current_template_args, at 
../egcs-20000807/gcc/cp/pt.c:1933
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

-----------------------------------------------------------------
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

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