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, C++, templates and static_cast<>()


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



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