[PATCH] D16163: [Concepts] Diagnose when return type of a function concept or declaration type of a variable concept is not bool.

Nathan Wilson via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 20 16:03:13 PST 2016


nwilson marked an inline comment as done.

================
Comment at: test/CXX/concepts-ts/dcl.dcl/dcl.spec/dcl.spec.concept/p5.cpp:22
@@ +21,3 @@
+template<typename T>
+concept float fcrtf() { return 5.5; } // expected-error {{declared return type of function concept must be 'bool'}}
+
----------------
The erroneous test which Hubert was referring to has been removed.


http://reviews.llvm.org/D16163





More information about the cfe-commits mailing list