This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/16175] [3.3/3.4/3.5 regression] Wrong type reported in diagnostic


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]