This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/16175] [3.3/3.4/3.5 regression] Wrong type reported in diagnostic
- From: "igodard at pacbell dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Jun 2004 17:20:30 -0000
- Subject: [Bug c++/16175] [3.3/3.4/3.5 regression] Wrong type reported in diagnostic
- References: <20040624153539.16175.igodard@pacbell.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From igodard at pacbell dot net 2004-06-25 17:20 -------
This loses "volatile" too:
template <typename> struct Template {};
template<template<typename> class D>
struct B {
static void foo(volatile D<void> *);
};
class D : protected B<Template> {};
void bar() {
D::foo (0);
}
int main() {
return 0;
}
gets you:
~/ootbc/common/test/src$ g++ foo.cc
foo.cc: In function `void bar()':
foo.cc:5: error: `static void B<D>::foo(D<void>*) [with D = Template]' is inaccessible
foo.cc:11: error: within this context
Should the volatile case be entered as a different bug?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16175