commit | ec92687ea8f84fcd267a5c2e44c09df02a2bfe81 | [log] [tgz] |
---|---|---|
author | Anders Carlsson <andersca@mac.com> | Tue Aug 25 13:46:13 2009 +0000 |
committer | Anders Carlsson <andersca@mac.com> | Tue Aug 25 13:46:13 2009 +0000 |
tree | 994a2da6c69fad46b091a7cdbc3b19513bea5dd4 | |
parent | 337531f203e9bc1810f6d00d0541a5aaf41ac16b [diff] [blame] |
If a parameter has a default argument expression, make sure to instantiate the parameter type before checking that the expression is a valid initializer. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79986 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/SemaTemplate/default-expr-arguments.cpp b/test/SemaTemplate/default-expr-arguments.cpp index 34d2d9d..7c813c9 100644 --- a/test/SemaTemplate/default-expr-arguments.cpp +++ b/test/SemaTemplate/default-expr-arguments.cpp
@@ -26,3 +26,11 @@ void g2() { F<int> f; } + +template<typename T> struct G { + G(T) {} +}; + +void s(G<int> flags = 10) { } + +