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

[Bug c++/13170] [3.4 Regression] ICE in build_base_path


------- Additional Comments From reichelt at gcc dot gnu dot org  2003-12-03 22:11 -------
Here's an even shorter testcase (without inheritance):

---------------------------------------------
struct __attribute__((dllimport)) A
{
    virtual ~A();
    void foo(const A&);
    void bar(const A&);
};

void A::foo(const A&)   {}
void A::bar(const A& a) { foo(a); }
---------------------------------------------

Btw, to get the infinite loop, you only have to make the destructor non-virtual.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13170


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