diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-03-18 22:52:47 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-03-18 22:52:47 +0000 |
commit | c7f811638f8603fa373d2be724e8b1c8ba51ad75 (patch) | |
tree | d338d2c57d4b01c3e7ce858c1586e6cc9ed5f518 /test/CodeGenCXX/debug-info-use-after-free.cpp | |
parent | 0378433dcdf9a5701207c2a592b10da71ad9ba5d (diff) |
Add missing diagnostic for a nested-name-specifier on a free-standing type definition. Bump some related diagnostics from warning to extension in C++, since they're errors there. Add some missing checks for function specifiers on non-function declarations.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177335 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/debug-info-use-after-free.cpp')
-rw-r--r-- | test/CodeGenCXX/debug-info-use-after-free.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/CodeGenCXX/debug-info-use-after-free.cpp b/test/CodeGenCXX/debug-info-use-after-free.cpp index 9757ca4d37..852e148956 100644 --- a/test/CodeGenCXX/debug-info-use-after-free.cpp +++ b/test/CodeGenCXX/debug-info-use-after-free.cpp @@ -192,6 +192,7 @@ __gnu_cxx { public: typedef _EqualKey key_equal; + typedef void key_type; }; using std::equal_to; @@ -217,7 +218,7 @@ __gnu_cxx { _Alloc > _Ht; public: - typename _Ht::key_type; + typedef typename _Ht::key_type key_type; typedef typename _Ht::key_equal key_equal; |