File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -164,7 +164,15 @@ namespace ecolab
164
164
DeviceType (A... args): model(new SyclType<M>(std::forward<A>(args)...)) {}
165
165
DeviceType (const DeviceType& x): model(new SyclType<M>(*x.model)) {}
166
166
DeviceType& operator =(const DeviceType& x) {*model=*x.model ; return *this ;}
167
+ #if defined(__GNUC__) && !defined(__clang__)
168
+ #pragma GCC diagnostic push
169
+ // gcc incorrectly infers SyclType is polymorphic, which is quite plainly is not
170
+ #pragma GCC diagnostic ignored "-Wdelete-non-virtual-dtor"
171
+ #endif
167
172
~DeviceType () {delete model;}
173
+ #if defined(__GNUC__) && !defined(__clang__)
174
+ #pragma GCC diagnostic pop
175
+ #endif
168
176
M& operator *() {return *model;}
169
177
const M& operator *() const {return *model;}
170
178
M* operator ->() {return model;}
You can’t perform that action at this time.
0 commit comments