commit | 20c55141395e22b6002b42ef30fcf4238402e48c | [log] [tgz] |
---|---|---|
author | Anders Carlsson <andersca@mac.com> | Tue Sep 01 04:26:58 2009 +0000 |
committer | Anders Carlsson <andersca@mac.com> | Tue Sep 01 04:26:58 2009 +0000 |
tree | cdd1e51b6106266e1fd0365e71384ea3c11187e5 | |
parent | eca5749185e4cfa2ab6f37a96ec03ac753b467b8 [diff] [blame] |
Don't assert when instantiating member references to fields in anonymous structs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80657 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/SemaTemplate/instantiate-anonymous-union.cpp b/test/SemaTemplate/instantiate-anonymous-union.cpp index 4eb5b0c..9c2467b 100644 --- a/test/SemaTemplate/instantiate-anonymous-union.cpp +++ b/test/SemaTemplate/instantiate-anonymous-union.cpp
@@ -6,3 +6,16 @@ A<int> a0; +template <typename T> struct B { + union { + int a; + void* b; + }; + + void f() { + a = 10; + b = 0; + } +}; + +B<int> b0;