]> granicus.if.org Git - clang/commit
Now that we have declared/defined tag types within DeclGroups,
authorDouglas Gregor <dgregor@apple.com>
Fri, 29 May 2009 14:25:00 +0000 (14:25 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 29 May 2009 14:25:00 +0000 (14:25 +0000)
commit8e92bf33baa91a8d97cbd4859648af149d5b5e74
tree7547fa5e9a9a7852214a6014beed943eb3225a85
parentc1dc653b08226c1d8e1732f9d8b03b82869900bc
Now that we have declared/defined tag types within DeclGroups,
instantiation of tags local to member functions of class templates
(and, eventually, function templates) works when the tag is defined as
part of the decl-specifier-seq, e.g.,

  struct S { T x, y; } s1;

Also, make sure that we don't try to default-initialize a dependent
type.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72568 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
lib/Sema/SemaTemplateInstantiateDecl.cpp
test/SemaTemplate/instantiate-declref.cpp