This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Internal compiler error, C++, templates and static_cast<>()
- To: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Subject: Re: Internal compiler error, C++, templates and static_cast<>()
- From: "George T. Talbot" <george at phat dot com>
- Date: Sun, 2 Apr 2000 12:28:43 -0400
- Cc: <gcc-bugs at gcc dot gnu dot org>
>> Got an internal compiler error for you. Compiling with templates and
>> static_cast<> causes it.
>
>Thanks for your bug report. The mainline compiler (2.96 20000326
>(experimental)) says
>
>In file included from weird_problem.cc:3:
>checkedptr.h:317: too many template parameter lists in declaration of
>checkedptr.h:317: `cast (Ptr<T, STRICT>)'
>checkedptr.h:317: syntax error before `{'
>weird_problem.cc: In function `int main (int, char **)':
>weird_problem.cc:40: `cast' undeclared (first use this function)
>weird_problem.cc:40: (Each undeclared identifier is reported only once
>weird_problem.cc:40: for each function it appears in.)
>
>so the problem appears to be fixed.
>
>Regards,
>Martin
Thanks for the error message--that helps a great deal.
--
George T. Talbot
<george at moberg dot com>