This is the mail archive of the gcc-help@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]

Strange #pragma interface behaviour introduced in gcc 4


Hello,

I work with libraries with lots of templates and, to reduce compilation
time, I split long definitions in separate files, and I do explicit
template instantiations in an extra compilation unit.

This used to work fine until (and including) gcc 3.4, but broke in gcc
4.  You can find a small example code at:

   http://www.enricozini.org/store/testcase.tar.gz

In that example, if I remove the #pragmas, it works.  With the pragmas,
it complains about the default constructor, destructor, copy constructor
and copy operation are used but not defined.

I didn't find this behaviour documented in the gcc changes files, and
I can't understand if it's a problem in my code or a problem in gcc.
I'm this writing for help.

Please keep me Cc-ed as I'm not subscribed to the list.


Ciao,

Enrico

--
GPG key: 1024D/797EBFAB 2000-12-05 Enrico Zini <enrico@debian.org>

Attachment: signature.asc
Description: Digital signature


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