This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: threads in C++
Dima Volodin wrote:
>
> [snip]the paragraph you refer to clearly states that "A C language linkage is
> ignored for the names of class members and the member function type of class
> member functions."
Doh. I missed that it said that it covered the type as well as the name.
Fair enough. The example below is different because it's a pointer type of
course.
> > extern "C" typedef void FUNC_c();
> >
> > class C {
> > public:
> > static FUNC_c* q;
> > };
> >
> > $ gcc -c flibble.cxx
> > flibble.cxx:1: multiple storage classes in declaration of `FUNC_c'
> >
> > g++ bug?
>
> Yep, looks like that.
I'll report it to bugs.
Jifl