public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/42653]  New: ICE with -g and -flto (requires both flags to crash)
@ 2010-01-07 20:19 baldrick at gcc dot gnu dot org
  2010-01-08 11:54 ` [Bug lto/42653] " rguenth at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: baldrick at gcc dot gnu dot org @ 2010-01-07 20:19 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1374 bytes --]

$ g++ -c -flto -g fltog.ii
fltog.ii: In member function ‘MCIListener’:
fltog.ii:25:3: internal compiler error: tree check: expected class ‘type’, have
‘declaration’ (function_decl) in gen_type_die_with_usage, at dwarf2out.c:18747

Occurs with top-of-tree g++-4.5.

Testcase fltog.ii:

namespace llvm
{
  class Function;
  class MachineCodeInfo;
  class ExecutionEngine
  {
  };
  class JIT:public ExecutionEngine
  {
    void runJITOnFunction (Function * F, MachineCodeInfo * MCI = 0);
  };
  class JITEventListener
  {
  public:JITEventListener ()
    {
    } virtual ~JITEventListener ();
  };
}

using namespace llvm;
void
JIT::runJITOnFunction (Function * F, MachineCodeInfo * MCI)
{
  class MCIListener:public JITEventListener
  {
    MachineCodeInfo *const MCI;
  public:  MCIListener (MachineCodeInfo * mci):MCI (mci)
    {
  }};
}


-- 
           Summary: ICE with -g and -flto (requires both flags to crash)
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: baldrick at gcc dot gnu dot org
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


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


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

end of thread, other threads:[~2010-05-19 13:18 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-07 20:19 [Bug lto/42653] New: ICE with -g and -flto (requires both flags to crash) baldrick at gcc dot gnu dot org
2010-01-08 11:54 ` [Bug lto/42653] " rguenth at gcc dot gnu dot org
2010-02-06 17:51 ` baldrick at gcc dot gnu dot org
2010-02-06 18:13 ` rguenth at gcc dot gnu dot org
2010-04-23 12:55 ` rguenth at gcc dot gnu dot org
2010-04-23 14:21 ` rguenth at gcc dot gnu dot org
2010-05-19 13:18 ` rguenth at gcc dot gnu dot org
2010-05-19 13:18 ` rguenth at gcc dot gnu dot 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).