diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-05-21 23:17:49 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-05-21 23:17:49 +0000 |
commit | 9ea62768fca25d829d80199cf4f8cf0f4dd39251 (patch) | |
tree | 148d110e673fdd610e2b177e8c2fadccac5ffc45 /test/SemaTemplate/fun-template-def.cpp | |
parent | ccb97f52afeb4ce5b239a6f3b44956d9e220e5e3 (diff) | |
download | clang-9ea62768fca25d829d80199cf4f8cf0f4dd39251.tar.gz clang-9ea62768fca25d829d80199cf4f8cf0f4dd39251.tar.bz2 clang-9ea62768fca25d829d80199cf4f8cf0f4dd39251.tar.xz |
Template instantiation for C99 designated initializers, because we
can. Also, delay semantic analysis of initialization for
value-dependent as well as type-dependent expressions, since we can't
always properly type-check a value-dependent expression.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72233 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaTemplate/fun-template-def.cpp')
-rw-r--r-- | test/SemaTemplate/fun-template-def.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/SemaTemplate/fun-template-def.cpp b/test/SemaTemplate/fun-template-def.cpp index fdcf6ee92c..8833ef4ddc 100644 --- a/test/SemaTemplate/fun-template-def.cpp +++ b/test/SemaTemplate/fun-template-def.cpp @@ -34,9 +34,9 @@ T f(T t1, U u1, int i1) new (t1, u1) int; delete t1; - dummy d1 = sizeof(t1); // expected-error {{cannot initialize 'd1'}} + dummy d1 = sizeof(t1); // FIXME: delayed checking okay? dummy d2 = offsetof(T, foo); // expected-error {{cannot initialize 'd2'}} - dummy d3 = __alignof(u1); // expected-error {{cannot initialize 'd3'}} + dummy d3 = __alignof(u1); // FIXME: delayed checking okay? i1 = typeid(t1); // expected-error {{incompatible type assigning}} return u1; |