This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/20397] improve diagnostic for 'is inaccessible' error
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 21 Jul 2015 17:32:08 +0000
- Subject: [Bug c++/20397] improve diagnostic for 'is inaccessible' error
- Auto-submitted: auto-generated
- References: <bug-20397-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=20397
--- Comment #17 from Jonathan Wakely <redi at gcc dot gnu.org> ---
FWIW for the original testcase G++ now says:
a.cc:9:8: error: âclass A A::Aâ is inaccessible within this context
int c(A *a) { return 7; }
^
a.cc:1:9: note: declared here
class A {
^
Which is ... different, I'll say that for it.
I'm not sure if "A::A" is meant to refer to the injected-class-name, but if it
is then it's not terribly clear unless you already know what that means and why
it happens.