This is the mail archive of the gcc-patches@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: [PATCH] C++ ice with overloaded functions


>>>>> "Theodore" == Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr> writes:

    Theodore> The testcase given below (I'm not sure I named it
    Theodore> correctly) fails with the current version of gcc
    Theodore> (actually 2000-06-19).

    mururoa-> g++ unify8.C
    Theodore> unify8.C: In function `void bar ()': unify8.C:12:
    Theodore> Internal compiler error 390.  unify8.C:12: Please submit
    Theodore> a full bug report.  unify8.C:12: See
    Theodore> <URL:http://www.gnu.org/software/gcc/bugs.html> for
    Theodore> instructions.

Thanks for your patch.  I think a different approach is in order,
though.  We shouldn't be calling arg_assoc_type for uninstantiated
function templates -- only for ordinary functions, or for
instantiations/specializations of function tempaltes.  The
arg_assoc_type function is used to do Koenig lookup, and I don't think
that should be hapenning yet.  Does that make sense?

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com

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