[Bug c++/37804] friend declaration leaks into global scope at template instantiation

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

[Bug c++/37804] friend declaration leaks into global scope at template instantiation

2019-01-24 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37804 Jonathan Wakely changed: What|Removed |Added Keywords|rejects-valid | Target|x86_64-linux-gnu

[Bug c++/37804] friend declaration leaks into global scope at template instantiation

2016-06-22 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37804 Bug 37804 depends on bug 31336, which changed state. Bug 31336 Summary: template friends and Koenig lookup https://gcc.gnu.org/bugzilla/show_bug.cgi?id=31336 What|Removed |Added -

[Bug c++/37804] friend declaration leaks into global scope at template instantiation

2014-06-02 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37804 Jonathan Wakely changed: What|Removed |Added Keywords||rejects-valid --- Comment #8 from Jona

[Bug c++/37804] friend declaration leaks into global scope at template instantiation

2014-06-02 Thread ilya.konstantinov at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37804 --- Comment #7 from Ilya Konstantinov --- Whoever has permission to change, please add 'rejects-valid' as per my example in the previous comment. P.S. this issue reproduces in g++ 4.8

[Bug c++/37804] friend declaration leaks into global scope at template instantiation

2014-06-01 Thread ilya.konstantinov at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37804 Ilya Konstantinov changed: What|Removed |Added CC||ilya.konstantinov at gmail dot com

[Bug c++/37804] friend declaration leaks into global scope at template instantiation

2009-01-15 Thread jason at gcc dot gnu dot org
--- Comment #5 from jason at gcc dot gnu dot org 2009-01-15 23:07 --- 7.3.1.2: If a friend declaration in a non-local class first declares a class or function the friend class or function is a member of the innermost enclosing namespace. The name of the friend is not found by unqualified

[Bug c++/37804] friend declaration leaks into global scope at template instantiation

2008-12-30 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2008-12-30 11:52 --- 14.6.5 [temp.inject] suggests that this is valid. EDG doesn't agree with that in strict-ansi mode. t2.C(9): error: identifier "B" is undefined B some_function(); // B should not be declared here ^ compilatio

[Bug c++/37804] friend declaration leaks into global scope at template instantiation

2008-10-11 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2008-10-11 18:46 --- Related to PR37775, PR34827 and PR31336. (search for accepts-invalid and 'friend') Seems like friend declarations are not an uncommon source for problems... -- rguenth at gcc dot gnu dot org changed:

[Bug c++/37804] friend declaration leaks into global scope at template instantiation

2008-10-11 Thread pinskia at gmail dot com
--- Comment #2 from pinskia at gmail dot com 2008-10-11 17:05 --- Subject: Re: New: Nested type leaks to global scope Sent from my iPhone On Oct 11, 2008, at 5:28 AM, "therealfroggey at gmail dot com" <[EMAIL PROTECTED] > wrote: > GCC versions used: > gcc version 4.1.2 > gcc ver

[Bug c++/37804] friend declaration leaks into global scope at template instantiation

2008-10-11 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2008-10-11 13:07 --- Confirmed. The friend declaration seems to inject Internal_B into the global namespace at the point of instantiating the template A. Reduced testcase: template struct A { friend class B; }; A a; // here we inj