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

2019-12-19 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92951 --- Comment #12 from Jonathan Wakely --- Filippo, please stop changing the bug status. The bug is INVALID, because there is no GCC bug here, it's an invalid bug report. FIXED means a bug in GCC was fixed. Since there's no GCC bug, nothing was fi

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

2019-12-16 Thread sch...@linux-m68k.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92951 Andreas Schwab changed: What|Removed |Added Resolution|WORKSFORME |INVALID

[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

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

2019-12-16 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92951 --- Comment #10 from Andrew Pinski --- (In reply to Andrew Pinski from comment #8) > NOTE yes there is a missing -Wshadow warning, I will file it in a second. PR92954

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

2019-12-16 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92951 Andrew Pinski changed: What|Removed |Added Resolution|FIXED |INVALID --- Comment #11 from Andrew Pins

[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 |FIXED

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

2019-12-16 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92951 --- Comment #8 from Andrew Pinski --- NOTE yes there is a missing -Wshadow warning, I will file it in a second.

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

2019-12-16 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92951 Andrew Pinski changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

[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 --- 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 #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 redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92951 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |WAITING Last reconfirmed|

[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 pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92951 --- Comment #1 from Andrew Pinski --- Is the printf before or after main? If before, then the problem is the order of variables initialized from different translational units is unspecified and therefore undefined. If after, then maybe somethin