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++/14464] compiler dumps with internal compiler error


------- Additional Comments From falk at debian dot org  2004-03-06 23:31 -------
Here's a test case, can probably be reduced further. Likely the same as bug 14230.

struct cow_String {
    cow_String(const cow_String& rhs) { }
    inline cow_String& operator=(const cow_String& str);
};

struct inp_StringIntPair {
    cow_String name;
    const cow_String& ConstGetInstanceNodeIdPair();
};

template<class Class>
struct thr_ThreadSingletonBase { };

template<class Class>
class thr_ThreadSingleton  { };

struct inp_SolverPartMap:public thr_ThreadSingleton<inp_SolverPartMap> {
    inp_StringIntPair ConstGetInstanceNodeIdPair(int globalId) const;
};

inp_SolverPartMap partMap;
int global = 0;
const cow_String& name = partMap.ConstGetInstanceNodeIdPair(global).name;

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1


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


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