From 24d44eddfc98464d10802e71c77d3dc3e45f4aac Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Tue, 22 Feb 2011 00:19:36 +0000 Subject: [PATCH] Add reference to PR 9278 for archaeologists. 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/p5.cpp b/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/p5.cpp index 3724243ede..20dd6343ce 100644 --- a/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/p5.cpp +++ b/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/p5.cpp @@ -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); -- 2.40.0