public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/41723] Error when using a qualified name to declare a nested template instantiation as a friend of the containing template
[not found] <bug-41723-4@http.gcc.gnu.org/bugzilla/>
@ 2015-03-27 18:16 ` paolo.carlini at oracle dot com
2021-04-07 21:02 ` [Bug c++/41723] [8/9/10/11 Regression] " jason at gcc dot gnu.org
` (7 subsequent siblings)
8 siblings, 0 replies; 9+ messages in thread
From: paolo.carlini at oracle dot com @ 2015-03-27 18:16 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41723
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2015-03-27
CC|gcc-bugs at gcc dot gnu.org |
Blocks| |65608
Ever confirmed|0 |1
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/41723] [8/9/10/11 Regression] Error when using a qualified name to declare a nested template instantiation as a friend of the containing template
[not found] <bug-41723-4@http.gcc.gnu.org/bugzilla/>
2015-03-27 18:16 ` [Bug c++/41723] Error when using a qualified name to declare a nested template instantiation as a friend of the containing template paolo.carlini at oracle dot com
@ 2021-04-07 21:02 ` jason at gcc dot gnu.org
2021-04-07 21:34 ` cvs-commit at gcc dot gnu.org
` (6 subsequent siblings)
8 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu.org @ 2021-04-07 21:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41723
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org
CC| |jason at gcc dot gnu.org
Status|NEW |ASSIGNED
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/41723] [8/9/10/11 Regression] Error when using a qualified name to declare a nested template instantiation as a friend of the containing template
[not found] <bug-41723-4@http.gcc.gnu.org/bugzilla/>
2015-03-27 18:16 ` [Bug c++/41723] Error when using a qualified name to declare a nested template instantiation as a friend of the containing template paolo.carlini at oracle dot com
2021-04-07 21:02 ` [Bug c++/41723] [8/9/10/11 Regression] " jason at gcc dot gnu.org
@ 2021-04-07 21:34 ` cvs-commit at gcc dot gnu.org
2021-04-07 21:36 ` [Bug c++/41723] [8/9/10 " jason at gcc dot gnu.org
` (5 subsequent siblings)
8 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-04-07 21:34 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41723
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <jason@gcc.gnu.org>:
https://gcc.gnu.org/g:fb5ed6d8c90a4bf8e677a3ff9bd79d83636ccff9
commit r11-8035-gfb5ed6d8c90a4bf8e677a3ff9bd79d83636ccff9
Author: Jason Merrill <jason@redhat.com>
Date: Wed Apr 7 16:42:44 2021 -0400
c++: friend with redundant qualification [PR41723]
Different code paths were correctly choosing to look up D directly, since C
is the current instantiation, but here we decided to try to make it a
typename type, leading to confusion. Fixed by using dependent_scope_p as
we
do elsewhere.
gcc/cp/ChangeLog:
PR c++/41723
* parser.c (cp_parser_class_name): Check dependent_scope_p.
gcc/testsuite/ChangeLog:
PR c++/41723
* g++.dg/template/friend71.C: New test.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/41723] [8/9/10 Regression] Error when using a qualified name to declare a nested template instantiation as a friend of the containing template
[not found] <bug-41723-4@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2021-04-07 21:34 ` cvs-commit at gcc dot gnu.org
@ 2021-04-07 21:36 ` jason at gcc dot gnu.org
2021-05-14 9:46 ` [Bug c++/41723] [9/10 " jakub at gcc dot gnu.org
` (4 subsequent siblings)
8 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu.org @ 2021-04-07 21:36 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41723
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[8/9/10/11 Regression] |[8/9/10 Regression] Error
|Error when using a |when using a qualified name
|qualified name to declare a |to declare a nested
|nested template |template instantiation as a
|instantiation as a friend |friend of the containing
|of the containing template |template
Known to work| |11.0
--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed for 11 so far.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/41723] [9/10 Regression] Error when using a qualified name to declare a nested template instantiation as a friend of the containing template
[not found] <bug-41723-4@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2021-04-07 21:36 ` [Bug c++/41723] [8/9/10 " jason at gcc dot gnu.org
@ 2021-05-14 9:46 ` jakub at gcc dot gnu.org
2021-05-20 21:35 ` cvs-commit at gcc dot gnu.org
` (3 subsequent siblings)
8 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-05-14 9:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41723
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|8.5 |9.4
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 8 branch is being closed.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/41723] [9/10 Regression] Error when using a qualified name to declare a nested template instantiation as a friend of the containing template
[not found] <bug-41723-4@http.gcc.gnu.org/bugzilla/>
` (4 preceding siblings ...)
2021-05-14 9:46 ` [Bug c++/41723] [9/10 " jakub at gcc dot gnu.org
@ 2021-05-20 21:35 ` cvs-commit at gcc dot gnu.org
2021-06-01 8:04 ` rguenth at gcc dot gnu.org
` (2 subsequent siblings)
8 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-05-20 21:35 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41723
--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Jason Merrill
<jason@gcc.gnu.org>:
https://gcc.gnu.org/g:e41d610696b81e72d1d06db176b281424e32fc23
commit r10-9851-ge41d610696b81e72d1d06db176b281424e32fc23
Author: Jason Merrill <jason@redhat.com>
Date: Wed Apr 7 16:42:44 2021 -0400
c++: friend with redundant qualification [PR41723]
Different code paths were correctly choosing to look up D directly, since C
is the current instantiation, but here we decided to try to make it a
typename type, leading to confusion. Fixed by using dependent_scope_p as
we
do elsewhere.
gcc/cp/ChangeLog:
PR c++/41723
* parser.c (cp_parser_class_name): Check dependent_scope_p.
gcc/testsuite/ChangeLog:
PR c++/41723
* g++.dg/template/friend71.C: New test.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/41723] [9/10 Regression] Error when using a qualified name to declare a nested template instantiation as a friend of the containing template
[not found] <bug-41723-4@http.gcc.gnu.org/bugzilla/>
` (5 preceding siblings ...)
2021-05-20 21:35 ` cvs-commit at gcc dot gnu.org
@ 2021-06-01 8:04 ` rguenth at gcc dot gnu.org
2022-05-12 22:24 ` cvs-commit at gcc dot gnu.org
2022-05-13 11:43 ` jason at gcc dot gnu.org
8 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-06-01 8:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41723
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|9.4 |9.5
--- Comment #9 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 9.4 is being released, retargeting bugs to GCC 9.5.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/41723] [9/10 Regression] Error when using a qualified name to declare a nested template instantiation as a friend of the containing template
[not found] <bug-41723-4@http.gcc.gnu.org/bugzilla/>
` (6 preceding siblings ...)
2021-06-01 8:04 ` rguenth at gcc dot gnu.org
@ 2022-05-12 22:24 ` cvs-commit at gcc dot gnu.org
2022-05-13 11:43 ` jason at gcc dot gnu.org
8 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-05-12 22:24 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41723
--- Comment #10 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Jason Merrill
<jason@gcc.gnu.org>:
https://gcc.gnu.org/g:c2e39b9e1568484192c3a4c2b4425b06e701a3fe
commit r10-10730-gc2e39b9e1568484192c3a4c2b4425b06e701a3fe
Author: Jason Merrill <jason@redhat.com>
Date: Thu May 12 17:08:52 2022 -0400
Revert "c++: friend with redundant qualification [PR41723]"
PR c++/102300
PR c++/41723
The patch for PR41723 caused PR102300 on trunk; let's just back it out on
the 10 branch.
This reverts commit e41d610696b81e72d1d06db176b281424e32fc23.
gcc/testsuite/ChangeLog:
* g++.dg/template/nested7.C: New test.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/41723] [9/10 Regression] Error when using a qualified name to declare a nested template instantiation as a friend of the containing template
[not found] <bug-41723-4@http.gcc.gnu.org/bugzilla/>
` (7 preceding siblings ...)
2022-05-12 22:24 ` cvs-commit at gcc dot gnu.org
@ 2022-05-13 11:43 ` jason at gcc dot gnu.org
8 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu.org @ 2022-05-13 11:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41723
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|ASSIGNED |RESOLVED
Target Milestone|9.5 |11.0
--- Comment #11 from Jason Merrill <jason at gcc dot gnu.org> ---
So, no longer trying to fix this in 9/10.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2022-05-13 11:43 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-41723-4@http.gcc.gnu.org/bugzilla/>
2015-03-27 18:16 ` [Bug c++/41723] Error when using a qualified name to declare a nested template instantiation as a friend of the containing template paolo.carlini at oracle dot com
2021-04-07 21:02 ` [Bug c++/41723] [8/9/10/11 Regression] " jason at gcc dot gnu.org
2021-04-07 21:34 ` cvs-commit at gcc dot gnu.org
2021-04-07 21:36 ` [Bug c++/41723] [8/9/10 " jason at gcc dot gnu.org
2021-05-14 9:46 ` [Bug c++/41723] [9/10 " jakub at gcc dot gnu.org
2021-05-20 21:35 ` cvs-commit at gcc dot gnu.org
2021-06-01 8:04 ` rguenth at gcc dot gnu.org
2022-05-12 22:24 ` cvs-commit at gcc dot gnu.org
2022-05-13 11:43 ` jason at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).