From ecb7e5c8afe929ee38155db94de6b084ec32a645 Mon Sep 17 00:00:00 2001 From: Roman Divacky Date: Tue, 16 Feb 2010 09:31:36 +0000 Subject: Update clang to r96341. --- test/SemaCXX/templated-friend-decl.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/SemaCXX/templated-friend-decl.cpp (limited to 'test/SemaCXX/templated-friend-decl.cpp') diff --git a/test/SemaCXX/templated-friend-decl.cpp b/test/SemaCXX/templated-friend-decl.cpp new file mode 100644 index 000000000000..c0034cd72f78 --- /dev/null +++ b/test/SemaCXX/templated-friend-decl.cpp @@ -0,0 +1,15 @@ +// RUN: %clang_cc1 %s + +template +struct Foo { + template + struct Bar {}; + + // The templated declaration for class Bar should not be instantiated when + // Foo is. This is to protect against PR5848; for now, this "parses" but + // requires a rewrite of the templated friend code to be properly fixed. + template + friend struct Bar; +}; + +Foo x; -- cgit v1.3