https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86946

--- Comment #9 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Mon Apr  1 20:43:13 2019
New Revision: 270068

URL: https://gcc.gnu.org/viewcvs?rev=270068&root=gcc&view=rev
Log:
        PR c++/86946 - ICE with function call in template argument.

DR 1321 clarified that two dependent names are equivalent if the names are
the same, even if the result of name lookup is different.  We need to
implement that in hashing like we already do in comparison and mangling.

        * pt.c (iterative_hash_template_arg) [CALL_EXPR]: Use
        dependent_name.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/fntmp-equiv1.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c

Reply via email to