This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
function pointer template parameter bug
- To: "Adam P. Jenkins" <ajenkins at cs dot umass dot edu>
- Subject: function pointer template parameter bug
- From: Mark Mitchell <mmitchell at usa dot net>
- Date: Thu, 12 Feb 1998 18:26:48 GMT
- Cc: egcs-bugs at cygnus dot com
- References: <199802121842.NAA16147@kalgoorlie.cs.umass.edu>
- Reply-To: mmitchell at usa dot net
>>>>> "Adam" == Adam P Jenkins <ajenkins@cs.umass.edu> writes:
Adam> The following program crashes egcs-2.90.23 980102.
This was fixed a while back.
Adam> kalgoorlie:1066$ /exp/rcf/share/bin/g++ -v Reading specs
Adam> from
Adam> /exp/rcf/share/lib/gcc-lib/i686-pc-linux-gnulibc1/egcs-2.90.23/specs
Adam> gcc version egcs-2.90.23 980102 (egcs-1.0.1 release)
Adam> kalgoorlie:1067$ /exp/rcf/share/bin/g++ tmp.cc tmp.cc: In
Adam> function `int main()': tmp.cc:14: Internal compiler error.
Adam> tmp.cc:14: Please submit a full bug report to
Adam> `egcs-bugs@cygnus.com'.
Adam> ---------- tmp.cc ---------- double f(double a) { return a;
Adam> }
Adam> template <double (*F)(double)> double callF(double a) {
Adam> return F(a); }
Adam> int main() { callF<f>(2.0); // line 14 return 0; }
Adam> ---------------------------
Adam> Adam
--
Mark Mitchell mmitchell@usa.net
Stanford University http://www.stanford.edu