Bug 24048 - Crash, compiling C++ with dllimport classes.
Summary: Crash, compiling C++ with dllimport classes.
Status: RESOLVED DUPLICATE of bug 23589
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 3.4.4
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-24 13:34 UTC by Artur Wegele
Modified: 2005-09-24 15:46 UTC (History)
1 user (show)

See Also:
Host:
Target: mingw32, cygwin
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Artur Wegele 2005-09-24 13:34:20 UTC
g++ crashes when compiling following code:

class  __declspec(dllimport) BaseClass {
public:
    virtual ~BaseClass();
};


class __declspec(dllimport) SubClass : public BaseClass
{
	  
public:
  // Ctor
    SubClass(){}
};



BaseClass::~BaseClass()
{
 	//do nothing							 
}

$ g++ -c test.cxx -o test.o
test.cxx: In destructor `BaseClass::~BaseClass()':
test.cxx:20: internal compiler error: in rest_of_handle_final, at ./toplev.c:2067
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.mingw.org/bugs.shtml> for instructions.
Comment 1 Andrew Pinski 2005-09-24 15:46:58 UTC

*** This bug has been marked as a duplicate of 23589 ***