[Bug c++/93477] [10 Regression] __atribute__((weak)) variables sharing the same name in two named namespaces cause a multiple definition error
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93477 --- Comment #6 from Dmitry G. Dyachenko --- r10-6310 PASS for me both reduced and unreduced cases. Thanks
[Bug c++/93477] [10 Regression] __atribute__((weak)) variables sharing the same name in two named namespaces cause a multiple definition error
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93477 Jason Merrill changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED --- Comment #5 from Jason Merrill --- Fixed.
[Bug c++/93477] [10 Regression] __atribute__((weak)) variables sharing the same name in two named namespaces cause a multiple definition error
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93477 --- Comment #4 from CVS Commits --- The master branch has been updated by Jason Merrill : https://gcc.gnu.org/g:25d62480c89d6db90a66ba69f6dbaa820a1ac90b commit r10-6307-g25d62480c89d6db90a66ba69f6dbaa820a1ac90b Author: Jason Merrill Date: Tue Jan 28 15:15:20 2020 -0500 c++: Fix guard variable and attribute weak. My patch for PR 91476 worked for decls that are implicitly comdat/weak due to C++ linkage rules, but broke variables explicitly marked weak. PR c++/93477 PR c++/91476 * decl2.c (copy_linkage): Do copy DECL_ONE_ONLY and DECL_WEAK.
[Bug c++/93477] [10 Regression] __atribute__((weak)) variables sharing the same name in two named namespaces cause a multiple definition error
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93477 Jason Merrill changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org
[Bug c++/93477] [10 Regression] __atribute__((weak)) variables sharing the same name in two named namespaces cause a multiple definition error
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93477 Richard Biener changed: What|Removed |Added Keywords||wrong-code Priority|P3 |P1
[Bug c++/93477] [10 Regression] __atribute__((weak)) variables sharing the same name in two named namespaces cause a multiple definition error
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93477 --- Comment #3 from Jakub Jelinek --- get_guard used to do: - if (TREE_PUBLIC (decl)) - DECL_WEAK (guard) = DECL_WEAK (decl); and doesn't anymore, so either it should be readded this way, or perhaps instead look for weak attribute on decl if TREE_PUBLIC and set DECL_WEAK in that case?
[Bug c++/93477] [10 Regression] __atribute__((weak)) variables sharing the same name in two named namespaces cause a multiple definition error
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93477 --- Comment #2 from Jakub Jelinek --- Oops, sorry, started with r10-6110-g8158a4640819dbb3210326e37786fb874f450272
[Bug c++/93477] [10 Regression] __atribute__((weak)) variables sharing the same name in two named namespaces cause a multiple definition error
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93477 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed||2020-01-28 CC||jakub at gcc dot gnu.org, ||jason at gcc dot gnu.org Target Milestone|--- |10.0 Ever confirmed|0 |1 --- Comment #1 from Jakub Jelinek --- Indeed, started with r10-6271-g8c08c983015e675f555d57a30e15d918abef2b93 Perhaps the guard should be weak if the variable it is guarding has weak attribute?