rsmith accepted this revision.
rsmith added inline comments.
This revision is now accepted and ready to land.


================
Comment at: test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.type.class.deduct/p1.cpp:17
 };
 extern A x; // expected-error {{requires an initializer}}
+static A y;
----------------
The diagnostic we produce in this case is not very good. The problem is not 
that the declaration requires an initializer (how can a forward declaration 
like this require an initializer?), instead the problem is that type deduction 
is only possible for the initializing declaration of a variable.


https://reviews.llvm.org/D38216



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to