This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
template unification problem
- To: egcs-bugs at cygnus dot com
- Subject: template unification problem
- From: Mark Mitchell <mmitchell at usa dot net>
- Date: Mon, 15 Dec 1997 09:04:02 GMT
- References: <199712151437.PAA00775@halles.ilog.fr>
- Reply-To: egcs-bugs at cygnus dot com
Bruno --
>>>>> "Bruno" == Bruno Haible <haible@ilog.fr> writes:
Bruno> Some nontrivial function template unification leads to an
Bruno> internal compiler error:
Bruno> $ egcs-g++ -v Reading specs from
Bruno> /packages/gnu/lib/gcc-lib/i486-pc-linux-gnulibc1/egcs-2.90.21/specs
Bruno> gcc version egcs-2.90.21 971202 (egcs-1.00 release) $
Bruno> egcs-g++ -O -S foo27.cc foo27.cc:5: Internal compiler
Bruno> error. foo27.cc:5: Please submit a full bug report to
Bruno> `egcs-bugs@cygnus.com'. $ cat foo27.cc template <int
Bruno> nlimb, int i> inline unsigned f (unsigned* ptr); template
Bruno> <int nlimb> inline unsigned f<nlimb,nlimb> (unsigned* ptr)
Bruno> { return 1; }
Jason has fixed this problem in the latest sources.
--
Mark Mitchell mmitchell@usa.net
Stanford University http://www.stanford.edu