diff options
| author | Nick Lewycky <nicholas@mxc.ca> | 2011-09-01 21:49:51 +0000 |
|---|---|---|
| committer | Nick Lewycky <nicholas@mxc.ca> | 2011-09-01 21:49:51 +0000 |
| commit | 0112b11f5c4dcc14a08153e97ddaa5c9a5908c50 (patch) | |
| tree | b2f2bc2e05579e68c85d8f0b2b21705d564cba05 /clang/test/CodeGenCXX/debug-info.cpp | |
| parent | a04ad1a1b9030ade5dd908e0684a862c5ccc93d0 (diff) | |
| download | bcm5719-llvm-0112b11f5c4dcc14a08153e97ddaa5c9a5908c50.tar.gz bcm5719-llvm-0112b11f5c4dcc14a08153e97ddaa5c9a5908c50.zip | |
Don't try to emit unsupported templated friend declarations. They're unsupported
and may very well be dependent-types, triggering an assertion in debug info
codegen.
llvm-svn: 138970
Diffstat (limited to 'clang/test/CodeGenCXX/debug-info.cpp')
| -rw-r--r-- | clang/test/CodeGenCXX/debug-info.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/debug-info.cpp b/clang/test/CodeGenCXX/debug-info.cpp index 71c8603a9fa..33b52789caf 100644 --- a/clang/test/CodeGenCXX/debug-info.cpp +++ b/clang/test/CodeGenCXX/debug-info.cpp @@ -55,3 +55,15 @@ void foo() { const wchar_t c = L'x'; wchar_t d = c; } + +namespace b5249287 { +template <typename T> class A { + struct B; +}; + +class Cls { + template <typename T> friend class A<T>::B; +}; + +Cls obj; +} |

