This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Reject dllimport on scalar typedefs (bug 33963)
On Wed, 27 Feb 2008, Danny Smith wrote:
> On Wed, Feb 27, 2008 at 10:40 AM, Mark Mitchell <mark@codesourcery.com> wrote:
> > Joseph S. Myers wrote:
> >
> > > 2008-02-26 Joseph Myers <joseph@codesourcery.com>
> > >
> > > PR target/33963
> > > * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
> > > other than structures and unions.
> >
> > OK, assuming no objections from Windows maintainers within 24 hours. (I
> > know this is target-independent code, but Windows folks are experts on
> > dllimport.)
> >
>
> Why do we allow dllimport/dllexport for typedefs of structs and
> unions? That usage is not documented in MSDN
> http://msdn2.microsoft.com/en-us/library/3y1sfaz2%28VS.71%29.aspx
I presume TYPE_DECL is arising for some C++ cases other than explicit
typedefs, relating to visibility for classes (otherwise Mark wouldn't have
needed to make the TYPE_DECL change in the first place).
--
Joseph S. Myers
joseph@codesourcery.com