[Bug c++/87207] ODR issue with static functions and lambda templates

2018-09-04 Thread blastrock at free dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87207 --- Comment #6 from blastrock at free dot fr --- Great, thanks!

[Bug c++/87207] ODR issue with static functions and lambda templates

2018-09-04 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87207 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/87207] ODR issue with static functions and lambda templates

2018-09-04 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87207 Jonathan Wakely changed: What|Removed |Added Version|8.0 |7.2.0 --- Comment #4 from Jonathan

[Bug c++/87207] ODR issue with static functions and lambda templates

2018-09-04 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87207 --- Comment #3 from Richard Biener --- I can reproduce it with FSF GCC 7.3 and FSF GCC 8.1 but not with FSF GCC 8.2 so it might be a duplicate of another bug that got fixed.

[Bug c++/87207] ODR issue with static functions and lambda templates

2018-09-04 Thread blastrock at free dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87207 --- Comment #2 from blastrock at free dot fr --- This seems to be due to this symbol in each .o file: W shared::shared(toto()::{lambda()#1}&&)::{lambda()#1}>(toto()::{lambda()#1})::{lambda()#1}::~shared() It is weak and global,

[Bug c++/87207] ODR issue with static functions and lambda templates

2018-09-03 Thread blastrock at free dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87207 --- Comment #1 from blastrock at free dot fr --- Created attachment 44653 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44653=edit output of gcc -v when compiling the test case