public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/60099] New: internal compiler error: Segmentation fault
@ 2014-02-06 17:12 nheghathivhistha at gmail dot com
  2014-02-06 17:12 ` [Bug other/60099] " nheghathivhistha at gmail dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: nheghathivhistha at gmail dot com @ 2014-02-06 17:12 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 60099
           Summary: internal compiler error: Segmentation fault
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: nheghathivhistha at gmail dot com

I can't build Seamonkey with rev.

x86_64-pc-linux-gnu-g++ -DMOZ_GLUE_IN_PROGRAM -DMOZILLA_INTERNAL_API
-DIMPL_LIBXUL  -DSTATIC_EXPORTABLE_JS_API -DNO_NSPR_10_SUPPORT -fPIC  
-DMOZILLA_CLIENT -ggdb -pipe -march=native -mtune=native -mno-avx
-fno-exceptions -fno-strict-aliasing -fno-rtti -fno-exceptions -fno-math-errno
-std=gnu++0x -pthread -DNDEBUG -DTRIMMED -Os -freorder-blocks 
-fomit-frame-pointer -c testcase.ii


C-reduced testcase:

typedef enum
{ }
nsresult;
struct nsID
{
};
typedef nsID nsCID;
typedef nsID nsIID;
class nsISupports
{
};
class nsCOMPtr_helper
{
public:
    virtual nsresult operator     () (const nsIID &, void **) const;
};
template < class T > class nsRefPtr
{
public:
    T element_type;
    nsRefPtr & operator= (const nsCOMPtr_helper & helper)
    {
        helper (T::template COMTypeInfo < int >::kIID, 0);
    }
};

class nsIURI:nsISupports
{
public:
    template < class > struct COMTypeInfo
    {
        static nsIID kIID;
    };
};
extern "C"
{
#pragma GCC visibility push(default)
}
class nsCreateInstanceByCID:public nsCOMPtr_helper
{
public:
    nsCreateInstanceByCID (nsCID & aCID, nsISupports *, nsresult *):mCID
(aCID),
        mErrorPtr ()
    {
    } nsresult operator     () (const nsIID &, void **) const;
    nsCID & mCID;
    nsresult *mErrorPtr;
};

nsCID kSimpleURICID;
inline nsCreateInstanceByCID
do_CreateInstance (nsCID & aCID, nsresult *)
{
    return nsCreateInstanceByCID (aCID, 0, 0);
}

void
nsDataHandlerNewURI ()
{
    nsRefPtr < nsIURI > uri;
    uri = do_CreateInstance (kSimpleURICID, 0);
}


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-02-07 12:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-06 17:12 [Bug other/60099] New: internal compiler error: Segmentation fault nheghathivhistha at gmail dot com
2014-02-06 17:12 ` [Bug other/60099] " nheghathivhistha at gmail dot com
2014-02-06 17:58 ` mpolacek at gcc dot gnu.org
2014-02-06 18:34 ` nheghathivhistha at gmail dot com
2014-02-06 18:35 ` nheghathivhistha at gmail dot com
2014-02-06 18:36 ` nheghathivhistha at gmail dot com
2014-02-06 19:13 ` nheghathivhistha at gmail dot com
2014-02-07 12:41 ` rguenth at gcc dot gnu.org

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).