public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/9021: bug report
@ 2002-12-20 4:06 Jaap de Wolff
0 siblings, 0 replies; only message in thread
From: Jaap de Wolff @ 2002-12-20 4:06 UTC (permalink / raw)
To: 'gcc-gnats@gcc.gnu.org'
>Number: 9021
>Category: c++
>Synopsis: No exports possible when using a class pointer in an union
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: wrong-code
>Submitter-Id: net
>Arrival-Date: Fri Dec 20 04:06:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:
>Release: ${DEFAULT_RELEASE-$RELEASE_C}
>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 creating a class with in it an union, not all exports come in
the object file
>How-To-Repeat:
when compiling the following code with
g++ -DWITH_BUG=1 -c BugDemo.cpp
the generated object file will not contain exports
when compiling with
g++ -DWITH_BUG=0 -c BugDemo.cpp
the generated object file will contain exports
/*** Start of code ***/
// BugDemo.cpp: demonstration of export bug
//
//////////////////////////////////////////////////////////////////////
class __declspec (dllexport) BugDemo
{
public:
BugDemo();
virtual ~BugDemo();
union
{
#if WITH_BUG
class BugDemo* m_pBugDemo;
#else
BugDemo* m_pBugDemo;
#endif
};
};
BugDemo::BugDemo()
{
}
BugDemo::~BugDemo()
{
}
/*** End of code ***/
---
Jaap de Wolff
Wolff@NewBridges.nl
New Bridges B.V.
Calandstraat 44
3316 EA Dordrecht
Tel. 078 6548787
Fax 078 6548788
www.NewBridges.nl
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
If the bug report must be sent to someone else, please inform me!
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-12-20 12:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-20 4:06 c++/9021: bug report Jaap de Wolff
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).