[cfe-commits] r126164 - /cfe/trunk/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/p5.cpp

Richard Smith richard-llvm at metafoo.co.uk
Mon Feb 21 16:19:36 PST 2011


Author: rsmith
Date: Mon Feb 21 18:19:36 2011
New Revision: 126164

URL: http://llvm.org/viewvc/llvm-project?rev=126164&view=rev
Log:
Add reference to PR 9278 for archaeologists.

Modified:
    cfe/trunk/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/p5.cpp

Modified: cfe/trunk/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/p5.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/p5.cpp?rev=126164&r1=126163&r2=126164&view=diff
==============================================================================
--- cfe/trunk/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/p5.cpp (original)
+++ cfe/trunk/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/p5.cpp Mon Feb 21 18:19:36 2011
@@ -14,6 +14,7 @@
   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);
 





More information about the cfe-commits mailing list