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]

template unification problem



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



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