[Bug c++/91418] Nested class of templated class cannot declare parent class friend

2021-12-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91418 Andrew Pinski changed: What|Removed |Added Keywords||rejects-valid --- Comment #7 from Andrew

[Bug c++/91418] Nested class of templated class cannot declare parent class friend

2021-12-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91418 --- Comment #6 from Andrew Pinski --- I think there is a defect in this area of the standard and most likely resolved by the P1787R6 paper.

[Bug c++/91418] Nested class of templated class cannot declare parent class friend

2019-08-12 Thread harald at gigawatt dot nl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91418 --- Comment #5 from Harald van Dijk --- (In reply to Darrell Wright from comment #4) > The weird part is, other than compilers don't agree, but the lookup finds it > if you put the template argument in The idea there seems to be that `class A;`

[Bug c++/91418] Nested class of templated class cannot declare parent class friend

2019-08-11 Thread Darrell.Wright at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91418 --- Comment #4 from Darrell Wright --- The weird part is, other than compilers don't agree, but the lookup finds it if you put the template argument in template struct A { auto func( ) { class B { B( ) = default;

[Bug c++/91418] Nested class of templated class cannot declare parent class friend

2019-08-11 Thread harald at gigawatt dot nl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91418 --- Comment #3 from Harald van Dijk --- I believe GCC is correct here. [class.friend]p11 (http://eel.is/c++draft/class.friend#11) specifies that `friend class A;`, with an unqualified name, does not find the global scope class A, but makes a (nev

[Bug c++/91418] Nested class of templated class cannot declare parent class friend

2019-08-11 Thread harald at gigawatt dot nl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91418 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl --- Comment

[Bug c++/91418] Nested class of templated class cannot declare parent class friend

2019-08-10 Thread Darrell.Wright at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91418 --- Comment #1 from Darrell Wright --- The template isn't part of it, https://gcc.godbolt.org/z/KCok90