From 80e1ae805982c8dd9b34903accb9ed3449337a63 Mon Sep 17 00:00:00 2001 From: Przemyslaw Gorszkowski Date: Sun, 19 May 2013 07:23:57 +0200 Subject: C++: fix crash during code completion with base template class ResolveExpression has to have a reference of ContextLookup. If not there will be a crash because of deleted instanitated base template class. Task-number: QTCREATORBUG-9329 Change-Id: I7f8c83da0d81ac6311e76d15a897adbc70b08d75 Reviewed-by: Erik Verbruggen --- src/plugins/cpptools/cpptoolsplugin.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/plugins/cpptools/cpptoolsplugin.h') diff --git a/src/plugins/cpptools/cpptoolsplugin.h b/src/plugins/cpptools/cpptoolsplugin.h index e5ef47ec3e..bf9c9b67a5 100644 --- a/src/plugins/cpptools/cpptoolsplugin.h +++ b/src/plugins/cpptools/cpptoolsplugin.h @@ -127,6 +127,7 @@ private slots: void test_completion_typedef_using_templates1(); void test_completion_typedef_using_templates2(); void test_completion_namespace_alias_with_many_namespace_declarations(); + void test_completion_crash_cloning_template_class_QTCREATORBUG9329(); void test_format_pointerdeclaration_in_simpledeclarations(); void test_format_pointerdeclaration_in_simpledeclarations_data(); -- cgit v1.2.1