[Bug c++/54483] undefined reference to static constexpr in .so

2024-01-17 Thread thiago at kde dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54483 --- Comment #13 from Thiago Macieira --- (In reply to Andrew Pinski from comment #11) > You still need: > constexpr float A::val; In C++11 mode, yes. C++17 made all static constexpr data members implicitly inline, which change the situation. In

[Bug c++/54483] undefined reference to static constexpr in .so

2024-01-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54483 Andrew Pinski changed: What|Removed |Added CC||thiago at kde dot org --- Comment #12 fr

[Bug c++/54483] undefined reference to static constexpr in .so

2021-08-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54483 Andrew Pinski changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|---

[Bug c++/54483] undefined reference to static constexpr in .so

2016-02-10 Thread ddsherstennikov at ya dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54483 Denis Sherstennikov changed: What|Removed |Added CC||ddsherstennikov at ya dot ru --- C

[Bug c++/54483] undefined reference to static constexpr in .so

2015-03-25 Thread kariya_mitsuru at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54483 Mitsuru Kariya changed: What|Removed |Added CC||kariya_mitsuru at hotmail dot com ---

[Bug c++/54483] undefined reference to static constexpr in .so

2014-11-30 Thread usack at math dot fu-berlin.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54483 --- Comment #8 from Juisoo --- The described case seems to work in GCC 4.9.2 with the attached files and g++ -c -fpic testicle.cc -std=c++11 g++ -shared -o libtesticle.so testicle.o g++ -L/home/usack/entwicklung/tetris -Wall -o testicles main.c

[Bug c++/54483] undefined reference to static constexpr in .so

2014-11-30 Thread usack at math dot fu-berlin.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54483 --- Comment #7 from Juisoo --- Created attachment 34148 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34148&action=edit second test case

[Bug c++/54483] undefined reference to static constexpr in .so

2014-11-30 Thread usack at math dot fu-berlin.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54483 Juisoo changed: What|Removed |Added CC||usack at math dot fu-berlin.de --- Comment #6 f

[Bug c++/54483] undefined reference to static constexpr in .so

2012-09-07 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54483 --- Comment #5 from Jonathan Wakely 2012-09-07 08:30:36 UTC --- (In reply to comment #3) > (In reply to comment #1) > > This is invalid as per [class.static.data]/3 : > > On C++11 level it should be valid http://www.open-std.org/jtc1/sc22/wg21/

[Bug c++/54483] undefined reference to static constexpr in .so

2012-09-05 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54483 Paolo Carlini changed: What|Removed |Added Status|RESOLVED|REOPENED Last reconfirmed|

[Bug c++/54483] undefined reference to static constexpr in .so

2012-09-05 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54483 --- Comment #3 from Daniel Krügler 2012-09-05 11:12:13 UTC --- (In reply to comment #1) > This is invalid as per [class.static.data]/3 : On C++11 level it should be valid, because odr-usage does not happen here according to [basic.def.odr] p3:

[Bug c++/54483] undefined reference to static constexpr in .so

2012-09-05 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54483 Richard Guenther changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|

[Bug c++/54483] undefined reference to static constexpr in .so

2012-09-05 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54483 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #1 f