[Bug c++/51757] friend defined inside class and declared inside main linker error

2024-04-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51757 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |11.0 Resolution|---

[Bug c++/51757] friend defined inside class and declared inside main linker error

2021-01-18 Thread language.lawyer at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51757 Language Lawyer changed: What|Removed |Added CC||language.lawyer at gmail dot com ---

[Bug c++/51757] friend defined inside class and declared inside main linker error

2019-01-24 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51757 Jonathan Wakely changed: What|Removed |Added Keywords||link-failure Last reconfirmed|2012-0

[Bug c++/51757] friend defined inside class and declared inside main linker error

2012-01-05 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51757 --- Comment #4 from Jonathan Wakely 2012-01-05 10:42:56 UTC --- Also, if there's no definition, why would it link when -fkeep-inline-functions is used? My guess would be that the call in main doesn't mark the inline function as used, so it is no

[Bug c++/51757] friend defined inside class and declared inside main linker error

2012-01-05 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51757 Jonathan Wakely changed: What|Removed |Added Status|RESOLVED|REOPENED Last reconfirmed|

[Bug c++/51757] friend defined inside class and declared inside main linker error

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

[Bug c++/51757] friend defined inside class and declared inside main linker error

2012-01-04 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51757 --- Comment #1 from Jonathan Wakely 2012-01-05 01:34:21 UTC --- Curious. It still fails even if there is a declaration of func at namespace scope. It works with -fkeep-inline-functions