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 lto/54898] [4.8 regression] ICE in uniquify_nodes, at lto/lto.c:1898


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

Markus Trippelsdorf <markus at trippelsdorf dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |markus at trippelsdorf dot
                   |                            |de

--- Comment #5 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2012-10-11 16:45:51 UTC ---
The testcases could be a bit further reduced:

markus@x4 testcase % < test.i
typedef wchar_t;
wchar_t a;
markus@x4 testcase % < test.ii
class P
{
public:
    typedef int PCXSTR;
    typedef wchar_t YCHAR;
};
class F
{
    P::PCXSTR PCXSTR;
};
class M
{
    bool OnHashAlg (const wchar_t *);
    F m_sPubKeyAlgOID;
};
bool
M::OnHashAlg (const wchar_t *)
{
}
markus@x4 testcase % gcc -r -nostdlib -flto test.i test.ii
lto1: internal compiler error: in uniquify_nodes, at lto/lto.c:1873

and with your gcc_asserts applied:

markus@x4 lto_bug % < test.i
typedef wchar_t;
wchar_t a;
markus@x4 lto_bug % < test.ii
void
fn1 (const wchar_t *)
{
}
markus@x4 lto_bug % gcc -r -nostdlib -flto test.i test.ii
lto1: internal compiler error: in write_ts_type_common_tree_pointers, at
tree-streamer-out.c:615


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