summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/crash-8.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.dg/other/crash-8.C')
-rw-r--r--gcc/testsuite/g++.dg/other/crash-8.C2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/other/crash-8.C b/gcc/testsuite/g++.dg/other/crash-8.C
index dcae7da76c7..b7f56fc9bd7 100644
--- a/gcc/testsuite/g++.dg/other/crash-8.C
+++ b/gcc/testsuite/g++.dg/other/crash-8.C
@@ -97,6 +97,8 @@ public:
mapped_type& operator[](const key_type& __k) {
insert(value_type(__k, mapped_type()));
+ static mapped_type a;
+ return a;
}
};