Re: Explicit template instantiation and -fvisibility. Gcc bug?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Nov 18, 2008 at 4:23 PM, Ian Lance Taylor <iant@xxxxxxxxxx> wrote:
> "Jeroen Wijnhout" <jeroen.wijnhout@xxxxxxxxx> writes:
>
>> The cause seems to be the instantiation of
>> DependentTemplatedClass<TemplatedClass<int > >, which induces an
>> instantiation of TemplatedClass<int> as well. However I would expect
>> this instantiation to have public visibility as well, because the
>> DependentTemplatedClass instantiation is public. Is this a GCC bug, or
>> am I doing something wrong here?
>
> The semantics of how visibility should work with C++ classes and
> templates are obscure and probably still not fully pinned down.  There
> has been work in each recent gcc release to address this in various
> ways.  You neglected to mention which version of gcc you are using.  I
> would recommend trying your program with mainline (the future gcc
> 4.4).  If it does not behave as you expect, file a bug report (see
> http://gcc.gnu.org/bugs.html ).  Thanks.

I am using GCC4.3.2 (most recent released version afaik), however I
will try the mainline version.

thanks,
Jeroen

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux