[Bug c++/95677] undefined reference to `(anonymous namespace)::xx'

2020-10-07 Thread nathan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95677 Nathan Sidwell changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/95677] undefined reference to `(anonymous namespace)::xx'

2020-09-23 Thread nathan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95677 Nathan Sidwell changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |nathan at gcc dot gnu.org

[Bug c++/95677] undefined reference to `(anonymous namespace)::xx'

2020-09-16 Thread sujian.liu at huawei dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95677 --- Comment #9 from liusujian --- After lto and as: /home/lsj/dts/SDK_CPU_RISCV/output/hcc_riscv32/hcc_riscv32/bin/../lib/gcc/riscv32-unknown-elf/7.3.0/../../../../riscv32-unknown-elf/bin/as -v --traditional-format -march=rv32imc -march=rv32imc

[Bug c++/95677] undefined reference to `(anonymous namespace)::xx'

2020-07-14 Thread sujian.liu at huawei dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95677 --- Comment #8 from liusujian --- (In reply to Nathan Sidwell from comment #6) > Ah, anonymous namespaces have internal linkage (and a program-wide unique > identifier). Their contents have the linkage they have. but because > they're within th

[Bug c++/95677] undefined reference to `(anonymous namespace)::xx'

2020-06-18 Thread sujian.liu at huawei dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95677 --- Comment #7 from liusujian --- Is this really a bug for the GCC when using LTO? If so, is there any plan to fix this problem? Thanks!

[Bug c++/95677] undefined reference to `(anonymous namespace)::xx'

2020-06-15 Thread nathan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95677 Nathan Sidwell changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug c++/95677] undefined reference to `(anonymous namespace)::xx'

2020-06-15 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95677 Richard Biener changed: What|Removed |Added Keywords||accepts-invalid --- Comment #5 from Ric

[Bug c++/95677] undefined reference to `(anonymous namespace)::xx'

2020-06-15 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95677 --- Comment #4 from Richard Biener --- (In reply to liusujian from comment #2) > (In reply to Richard Biener from comment #1) > > It's more likely the GENERIC / cgraph output by the C++ frontend is not > > correct > > and works by accident withou

[Bug c++/95677] undefined reference to `(anonymous namespace)::xx'

2020-06-15 Thread nathan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95677 --- Comment #3 from Nathan Sidwell --- I think the testcase is should be formed. it was ok in C++98, but that changed when anonymous namespaces gave their contents internal linkage (rather than external but with unpronounceable symbols). [basic

[Bug c++/95677] undefined reference to `(anonymous namespace)::xx'

2020-06-15 Thread sujian.liu at huawei dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95677 --- Comment #2 from liusujian --- (In reply to Richard Biener from comment #1) > It's more likely the GENERIC / cgraph output by the C++ frontend is not > correct > and works by accident without LTO. Initial symbol table: > > Initial Symbol tab

[Bug c++/95677] undefined reference to `(anonymous namespace)::xx'

2020-06-15 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95677 Richard Biener changed: What|Removed |Added Keywords||lto, wrong-code Component|lto