diff options
author | Jason Merrill <jason@redhat.com> | 2015-12-14 15:54:17 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2015-12-14 15:54:17 -0500 |
commit | fa583f9e654fb4c7137a869d767858534f0bb535 (patch) | |
tree | 05360f26f61441741762e034d1fa1b831ba0023b /gcc/hash-map.h | |
parent | 1cb62d16c2d4c090117766d5dfc67c5badb0617c (diff) | |
download | gcc-fa583f9e654fb4c7137a869d767858534f0bb535.zip gcc-fa583f9e654fb4c7137a869d767858534f0bb535.tar.gz gcc-fa583f9e654fb4c7137a869d767858534f0bb535.tar.bz2 |
re PR c++/68309 (ICE: Segmentation fault)
PR c++/68309
gcc/
* hash-table.h: Add copy constructor.
* hash-map.h: Add copy constructor.
gcc/cp/
* pt.c (instantiate_decl): Copy local_specializations for nested
function.
From-SVN: r231632
Diffstat (limited to 'gcc/hash-map.h')
-rw-r--r-- | gcc/hash-map.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/hash-map.h b/gcc/hash-map.h index 81ede08..510353b 100644 --- a/gcc/hash-map.h +++ b/gcc/hash-map.h @@ -111,6 +111,11 @@ public: CXX_MEM_STAT_INFO) : m_table (n, ggc, gather_mem_stats, HASH_MAP_ORIGIN PASS_MEM_STAT) {} + hash_map (const hash_map &h, bool ggc = false, + bool gather_mem_stats = GATHER_STATISTICS CXX_MEM_STAT_INFO) + : m_table (h.m_table, ggc, gather_mem_stats, + HASH_MAP_ORIGIN PASS_MEM_STAT) {} + /* Create a hash_map in ggc memory. */ static hash_map *create_ggc (size_t size, bool gather_mem_stats = GATHER_STATISTICS |