re PR c++/92458 (Constraints do not work with precompiled headers)
authorJakub Jelinek <jakub@redhat.com>
Fri, 22 Nov 2019 21:38:44 +0000 (22:38 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 22 Nov 2019 21:38:44 +0000 (22:38 +0100)
commitdf418f1d3cba53a4d3d20c2f640a250dd4c1bfa3
treef66e383f251a8499f4d34c9d8662bca6f50413af
parent839e636a9abe65f4880fb5d9609f8ee5ff277fe5
re PR c++/92458 (Constraints do not work with precompiled headers)

PR c++/92458
* tree-hash-traits.h (tree_decl_hash, tree_ssa_name_hash,
tree_hash): Move to ...
* tree.h (tree_decl_hash, tree_ssa_name_hash, tree_hash): ... here.
(struct decl_tree_cache_traits, struct type_tree_cache_traits): New
types.
(decl_tree_cache_map, tree_tree_cache_map): New typedefs.

* init.c (nsdmi_inst): Change type to
decl_tree_cache_map * from tree_cache_map *.
* constraint.cc (decl_constraints): Likewise.
* decl.c (get_tuple_decomp_init): Likewise.
* pt.c (defarg_inst, explicit_specifier_map): Likewise.
(tsubst_default_argument, store_explicit_specifier): Use
decl_tree_cache_map::create_ggc rather than
tree_cache_map::create_ggc.
* cp-objcp-common.c (debug_type_map): Change type to
type_tree_cache_map * from tree_cache_map *.

* g++.dg/pch/pr92458.C: New test.
* g++.dg/pch/pr92458.Hs: New test.

From-SVN: r278633
12 files changed:
gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/constraint.cc
gcc/cp/cp-objcp-common.c
gcc/cp/decl.c
gcc/cp/init.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/pch/pr92458.C [new file with mode: 0644]
gcc/testsuite/g++.dg/pch/pr92458.Hs [new file with mode: 0644]
gcc/tree-hash-traits.h
gcc/tree.h