]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR c++/86946 - ICE with function call in template argument.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 Apr 2019 20:43:13 +0000 (20:43 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 Apr 2019 20:43:13 +0000 (20:43 +0000)
commit0ccdb705e81437e5f5ada61105c39f9b489e5d2e
treefbf10307f4956d69917d55440d98f67aa43b33c9
parent20dd141865df31677080e32f8d2b0386ae162b97
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@270068 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp0x/fntmp-equiv1.C [new file with mode: 0644]