public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/100918] New: Naming a destructor as a qualified template-id results in bogus access error
@ 2021-06-04 20:22 ppalka at gcc dot gnu.org
  2021-06-04 20:27 ` [Bug c++/100918] " ppalka at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: ppalka at gcc dot gnu.org @ 2021-06-04 20:22 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100918

            Bug ID: 100918
           Summary: Naming a destructor as a qualified template-id results
                    in bogus access error
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ppalka at gcc dot gnu.org
  Target Milestone: ---

The following testcase:

struct Outer {
    template<class T>
    struct Inner { ~Inner(); };
};

template<>
Outer::Inner<int>::~Inner<int>() {}

is rejected with

<stdin>: In destructor ‘Outer::Inner<T>::~Inner() [with T = int]’:
<stdin>:7:21: error: ‘template<class T> struct Outer::Inner’ is inaccessible
within this context
<stdin>:3:12: note: declared here

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2023-07-07  9:41 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-04 20:22 [Bug c++/100918] New: Naming a destructor as a qualified template-id results in bogus access error ppalka at gcc dot gnu.org
2021-06-04 20:27 ` [Bug c++/100918] " ppalka at gcc dot gnu.org
2021-06-04 20:33 ` ppalka at gcc dot gnu.org
2021-06-04 21:12 ` [Bug c++/100918] [9/10/11/12 Regression] " ppalka at gcc dot gnu.org
2021-06-07 16:06 ` cvs-commit at gcc dot gnu.org
2021-07-13 14:03 ` cvs-commit at gcc dot gnu.org
2021-07-13 14:04 ` [Bug c++/100918] [9/10 " ppalka at gcc dot gnu.org
2022-05-27  9:45 ` [Bug c++/100918] [10 " rguenth at gcc dot gnu.org
2022-06-28 10:45 ` jakub at gcc dot gnu.org
2023-05-04 21:43 ` christian.prochaska@genode-labs.com
2023-05-04 21:46 ` pinskia at gcc dot gnu.org
2023-05-04 21:49 ` pinskia at gcc dot gnu.org
2023-07-07  9:41 ` rguenth 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).