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

c++/9023: No exports possible when using a class pointer in a class definition


>Number:         9023
>Category:       c++
>Synopsis:       No exports possible when using a class pointer in a class definition
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          wrong-code
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 20 06:06:07 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     wolff@newbridges.nl
>Release:        3.20
>Organization:
>Environment:
System: NT4.0
Architecture: pentium 4
host: i386-pc-mingw32
build: i386-pc-mingw32
target: i386-pc-mingw32
configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --enable-languages=f77,c++,objc,ada --disable-win32-registry --disable-shared : (reconfigured) ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --enable-languages=f77,c++,objc,ada --disable-win32-registry --disable-shared
>Description:
when placing an class definition using a pointer to MyClass, after the class definition of MyClass, functions of MyClass are not exported 
(as they should when using  __declspec (dllexport))

possible there is a relation with bug #9021
>How-To-Repeat:
when compiling the code with 
g++ -DWITH_BUG=1 -c BugGcc2.cpp 
the generated object file will not contain exports
when compiling with
g++ -DWITH_BUG=0 -c BugGcc2.cpp 
the generated object file will contain exports
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="BugGcc2.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="BugGcc2.cpp"

Ly8gQnVnR2NjMi5jcHA6IGltcGxlbWVudGF0aW9uIG9mIHRoZSBleHBvcnQgQnVnLg0KLy8NCi8v
Ly8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8v
Ly8vLy8vLy8vLy8NCiNpZiAhV0lUSF9CVUcNCmNsYXNzIEJ1Z0djY0ltcCAgDQp7IHZpcnR1YWwg
Ym9vbCBSZWZyZXNoKGNsYXNzIEJ1Z0djYyAqcFZhbHVlKSA9IDA7IH07DQojZW5kaWYNCg0KY2xh
c3MgX19kZWNsc3BlYyAoZGxsZXhwb3J0KSBCdWdHY2MNCnsNCnB1YmxpYzoNCglCdWdHY2MoY29u
c3QgQnVnR2NjJiByQnVnR2NjKTsNCgl2aXJ0dWFsIH5CdWdHY2MoKTsNCn07DQoNCiNpZiBXSVRI
X0JVRw0KY2xhc3MgQnVnR2NjSW1wICANCnsgdmlydHVhbCBib29sIFJlZnJlc2goY2xhc3MgQnVn
R2NjICpwVmFsdWUpID0gMDsgfTsNCiNlbmRpZg0KDQpCdWdHY2M6OkJ1Z0djYyhjb25zdCBCdWdH
Y2MgJnJCdWdHY2MpDQp7DQp9DQoNCg0KQnVnR2NjOjp+QnVnR2NjKCkNCnsNCg0KfQ0KDQo=


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