[vector] Fix compilation error

Paul Sandoz paul.sandoz at oracle.com
Wed Oct 30 18:47:31 UTC 2019


Compilation is failing, fix is below:

=== Output from failing command(s) repeated here ===
* For target hotspot_variant-server_libjvm_objs_ad_x86.o:
In file included from ad_x86.cpp:29:
In file included from ad_x86.hpp:38:
/Users/sandoz/Projects/jdk/vectorIntrinsics/src/hotspot/share/opto/vectornode.hpp:1288:27: error: in-class initialization of non-static data member is a C++11 extension [-Werror,-Wc++11-extensions]
  bool _shuffle_to_vector = false;

Paul.

diff -r 6815360628ce src/hotspot/share/opto/vectornode.hpp
--- a/src/hotspot/share/opto/vectornode.hpp     Wed Oct 30 10:20:44 2019 -0700
+++ b/src/hotspot/share/opto/vectornode.hpp     Wed Oct 30 11:45:50 2019 -0700
@@ -1285,7 +1285,7 @@
 
 class VectorUnboxNode : public VectorNode {
 private:
-  bool _shuffle_to_vector = false;
+  bool _shuffle_to_vector;
 protected:
   uint size_of() const { return sizeof(*this); }
  public:





More information about the panama-dev mailing list