From: Richard Smith Date: Tue, 22 Feb 2011 00:19:36 +0000 (+0000) Subject: Add reference to PR 9278 for archaeologists. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=24d44eddfc98464d10802e71c77d3dc3e45f4aac;p=clang Add reference to PR 9278 for archaeologists. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126164 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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);