PR c++/86946 - ICE with function call in template argument.
authorJason Merrill <jason@redhat.com>
Mon, 1 Apr 2019 20:43:13 +0000 (16:43 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 1 Apr 2019 20:43:13 +0000 (16:43 -0400)
commitb491c59fb554a78b2590b1ffec31c40b5432fa86
treefbf10307f4956d69917d55440d98f67aa43b33c9
parentb33ef29fffa01c710fcd09d594efa204d457d59f
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.

From-SVN: r270068
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp0x/fntmp-equiv1.C [new file with mode: 0644]