[PATCH] D68753: [CUDA][HIP} Add a test for constexpr default ctor

Artem Belevich via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 10 12:00:00 PDT 2019


tra added inline comments.


================
Comment at: test/SemaCUDA/constexpr-ctor.cu:14-27
+template <class T> struct B {
+  T a;
+  constexpr B() = default;
+};
+
+template <class T> struct C {
+  T a;
----------------
Do we really need three identical templates? If they are needed to let compiler emit multiple diagnostics, perhaps we could just add another template parameter so we can get different instantiations.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D68753/new/

https://reviews.llvm.org/D68753





More information about the cfe-commits mailing list