[PATCH] D12686: Add support for GCC's '__auto_type' extension.

Nico Weber via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 12 22:58:40 PDT 2015


thakis added a subscriber: thakis.

================
Comment at: test/SemaCXX/auto-type-from-cxx.cpp:14
@@ +13,3 @@
+  auto _ = [](__auto_type f) {}; // expected-error {{'__auto_type' not allowed in lambda parameter}}
+  __auto_type g = 2;
+  struct BitField { int field:2; };
----------------
Shouldn't this say "warning: __auto_type is a gnu extension" (since this uses -std=c++14, not -std=gnu++14)?


http://reviews.llvm.org/D12686





More information about the cfe-commits mailing list