]> granicus.if.org Git - clang/commit
C++0x's deduced auto is illegal in typedefs.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 21 Feb 2011 23:18:00 +0000 (23:18 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 21 Feb 2011 23:18:00 +0000 (23:18 +0000)
commitddc83f9255834217f0559b09ff75a1c50b8ce457
treed34bde9cd0d68a17ee005d7a80ca9cd706af4028
parente177d3b7445ebe9358f0858a4a23453c4b750c0f
C++0x's deduced auto is illegal in typedefs.

This actually rules out too much, since it also catches typedefs for pointers to functions with trailing return types:

  typedef auto (*F)() -> int;

Fix for that (and the same issue in all abstract-declarators) to follow shortly.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126153 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaType.cpp
test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/p5.cpp