public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/42425]  New: ICE declaring local class
@ 2009-12-18 11:13 reichelt at gcc dot gnu dot org
  2009-12-19 12:16 ` [Bug debug/42425] " rguenth at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2009-12-18 11:13 UTC (permalink / raw)
  To: gcc-bugs

The following valid code snippet triggers an ICE on trunk when compiled
with "-flto -g":

==========================
struct A
{
  virtual ~A();
};

void foo()
{
  struct B : A {};
  B b;
}
==========================

bug.cc: In member function 'B':
bug.cc:8:16: internal compiler error: tree check: expected class 'type', have
'declaration' (function_decl) in gen_type_die_with_usage, at dwarf2out.c:18739
Please submit a full bug report, [etc.]


-- 
           Summary: ICE declaring local class
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, lto
          Severity: normal
          Priority: P3
         Component: debug
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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


^ 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 --
2009-12-18 11:13 [Bug debug/42425] New: ICE declaring local class reichelt at gcc dot gnu dot org
2009-12-19 12:16 ` [Bug debug/42425] " rguenth at gcc dot gnu dot org
2010-04-23 15:59 ` rguenth at gcc dot gnu dot org
2010-04-26  9:13 ` rguenth at gcc dot gnu dot org
2010-04-26  9:17 ` rguenth at gcc dot gnu dot org
2010-05-02 15:32 ` 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).