]> granicus.if.org Git - clang/commitdiff
Add reference to PR 9278 for archaeologists.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 22 Feb 2011 00:19:36 +0000 (00:19 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 22 Feb 2011 00:19:36 +0000 (00:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126164 91177308-0d34-0410-b5e6-96231b3b80d8

test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/p5.cpp

index 3724243ede0c51552649c68379052637e4d08bc2..20dd6343ce0c9bc8de44670fcb03a3694712a77a 100644 (file)
@@ -14,6 +14,7 @@ struct S {
   operator auto(); // expected-error{{'auto' not allowed here}}
 };
 
+// PR 9278: auto is not allowed in typedefs, except with a trailing return type.
 typedef auto *AutoPtr; // expected-error{{'auto' not allowed in typedef}}
 typedef auto Fun(int a) -> decltype(a + a);