[Bug c++/97658] Tired of having to change make files on every new version. Damnit!

2020-11-03 Thread hubert.vansteenhuyse at freecode dot be via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97658

--- Comment #3 from hubert.vansteenhuyse at freecode dot be ---
You are killing that marvelous gcc compiler by doing this, this is my point.

[Bug c++/97658] New: Tired of having to change make files on every new version. Damnit!

2020-10-31 Thread hubert.vansteenhuyse at freecode dot be via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97658

Bug ID: 97658
   Summary: Tired of having to change make files on every new
version. Damnit!
   Product: gcc
   Version: unknown
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
  Assignee: unassigned at gcc dot gnu.org
  Reporter: hubert.vansteenhuyse at freecode dot be
  Target Milestone: ---

src/MAL/utils/utils.hpp:600:10: note: ‘struct
HASHTABLE::CONTAINER’ declared here
  600 |   struct CONTAINER {
  |  ^
src/MAL/utils/utils.hpp: In instantiation of ‘void HASHTABLE::reset() [with
T = PROJECTILE*]’:
src/game/game.hpp:431:19:   required from here
src/MAL/utils/utils.hpp:691:11: warning: ‘void* memset(void*, int, size_t)’
clearing an object of non-trivial type ‘struct
HASHTABLE::CONTAINER’; use assignment or value-initialization
instead [-Wclass-memaccess]
  691 | memset(this->data.array, 0, sizeof(CONTAINER) *
this->data.elems());
  | ~~^
src/MAL/utils/utils.hpp:600:10: note: ‘struct
HASHTABLE::CONTAINER’ declared here
  600 |   struct CONTAINER {
  |  ^
src/MAL/utils/utils.hpp: In instantiation of ‘void HASHTABLE::reset() [with
T = PROFILE*]’:
src/game/bots.cpp:330:16:   required from here
src/MAL/utils/utils.hpp:691:11: warning: ‘void* memset(void*, int, size_t)’
clearing an object of non-trivial type ‘struct HASHTABLE::CONTAINER’;
use assignment or value-initialization instead [-Wclass-memaccess]
  691 | memset(this->data.array, 0, sizeof(CONTAINER) *
this->data.elems());
  | ~~^
src/MAL/utils/utils.hpp:600:10: note: ‘struct HASHTABLE::CONTAINER’
declared here
  600 |   struct CONTAINER {
  |  ^
src/MAL/utils/utils.hpp: In instantiation of ‘void HASHTABLE::reset() [with
T = BOT*]’:
src/game/bots.cpp:1847:15:   required from here
src/MAL/utils/utils.hpp:691:11: warning: ‘void* memset(void*, int, size_t)’
clearing an object of non-trivial type ‘struct HASHTABLE::CONTAINER’; use
assignment or value-initialization instead [-Wclass-memaccess]
  691 | memset(this->data.array, 0, sizeof(CONTAINER) *
this->data.elems());
  | ~~^
src/MAL/utils/utils.hpp:600:10: note: ‘struct HASHTABLE::CONTAINER’
declared here
  600 |   struct CONTAINER {
  |  ^
src/MAL/utils/utils.hpp: In instantiation of ‘void HASHTABLE::reset() [with
T = TREE*]’:
src/MAL/utils/utils.hpp:684:4:   required from ‘HASHTABLE::HASHTABLE(int)
[with T = TREE*]’
src/octree.hpp:1233:19:   required from here
src/MAL/utils/utils.hpp:691:11: warning: ‘void* memset(void*, int, size_t)’
clearing an object of non-trivial type ‘struct HASHTABLE::CONTAINER’;
use assignment or value-initialization instead [-Wclass-memaccess]
  691 | memset(this->data.array, 0, sizeof(CONTAINER) *
this->data.elems());
  | ~~^
src/MAL/utils/utils.hpp:600:10: note: ‘struct HASHTABLE::CONTAINER’
declared here
  600 |   struct CONTAINER {
  |  ^
src/MAL/utils/utils.hpp: In instantiation of ‘void HASHTABLE::reset() [with
T = LIST*]’:
src/MAL/utils/utils.hpp:684:4:   required from ‘HASHTABLE::HASHTABLE(int)
[with T = LIST*]’
src/octedit.hpp:1307:30:   required from here
src/MAL/utils/utils.hpp:691:11: warning: ‘void* memset(void*, int, size_t)’
clearing an object of non-trivial type ‘struct
HASHTABLE*>::CONTAINER’; use assignment or value-initialization
instead [-Wclass-memaccess]
  691 | memset(this->data.array, 0, sizeof(CONTAINER) *
this->data.elems());
  | ~~^
src/MAL/utils/utils.hpp:600:10: note: ‘struct
HASHTABLE*>::CONTAINER’ declared here
  600 |   struct CONTAINER {
  |  ^