[Bug c++/92951] New: extern variable declaration doesn't behave properly for me

2019-12-16 Thread fportera2 at gmail dot com
ormal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: fportera2 at gmail dot com Target Milestone: --- I have a global variable 'traindata' declared in cnn.cpp: arma::mat traindata; , I'm importing this varible in me

[Bug c++/92951] extern variable declaration doesn't behave properly for me

2019-12-16 Thread fportera2 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92951 --- Comment #2 from Filippo Portera --- I printf the variable dimensions both in the main() that in: void MeanSquaredError::Backward( int begin, int batch_size, const InputType&& input, const TargetType&& target, OutputTy

[Bug c++/92951] extern variable declaration doesn't behave properly for me

2019-12-16 Thread fportera2 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92951 --- Comment #4 from Filippo Portera --- Created attachment 47503 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47503&action=edit main file where training is defined

[Bug c++/92951] extern variable declaration doesn't behave properly for me

2019-12-16 Thread fportera2 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92951 --- Comment #5 from Filippo Portera --- Created attachment 47504 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47504&action=edit include file where training is declared as extern

[Bug c++/92951] extern variable declaration doesn't behave properly for me

2019-12-16 Thread fportera2 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92951 --- Comment #6 from Filippo Portera --- Created attachment 47505 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47505&action=edit implementation file where I would like to use the training variable

[Bug c++/92951] extern variable declaration doesn't behave properly for me

2019-12-16 Thread fportera2 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92951 Filippo Portera changed: What|Removed |Added Resolution|INVALID |FIXED

[Bug c++/92951] extern variable declaration doesn't behave properly for me

2019-12-16 Thread fportera2 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92951 --- Comment #9 from Filippo Portera --- Fixed! Thanks a lot! Il giorno lun 16 dic 2019 alle ore 12:28 pinskia at gcc dot gnu.org < gcc-bugzi...@gcc.gnu.org> ha scritto: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92951 > > --- Comment #8 fro

[Bug c++/92951] extern variable declaration doesn't behave properly for me

2019-12-16 Thread fportera2 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92951 Filippo Portera changed: What|Removed |Added Resolution|INVALID |WORKSFORME