public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/43898]  New: -flto -g: "tree check: expected class 'type', have 'declaration'"
@ 2010-04-26 17:45 max at duempel dot org
  2010-04-27  9:41 ` [Bug lto/43898] -flto -g: ICE in dwarf2out_finish, at dwarf2out.c:21433 rguenth at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: max at duempel dot org @ 2010-04-26 17:45 UTC (permalink / raw)
  To: gcc-bugs

With "-flto -g", the following source will bail out with an internal compiler
error:

 void bug() {
   struct Class {
     Class(int a) {}
     virtual void f() {}
   };
   Class a(0);
 }

Command line: g++-4.5 -g -flto bug.cxx

Error message:

 bug.cxx: In member function 'bug()::Class::f()':
 bug.cxx:4:23: internal compiler error: tree check: expected class 'type', have
'declaration' (function_decl) in gen_type_die_with_usage, at dwarf2out.c:18962
 Please submit a full bug report,
 with preprocessed source if appropriate.
 See <file:///usr/share/doc/gcc-4.5/README.Bugs> for instructions.

Compiler version: gcc version 4.5.1 20100419 (prerelease) (Debian 4.5.0-2)


-- 
           Summary: -flto -g: "tree check: expected class 'type', have
                    'declaration'"
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: max at duempel dot org
 GCC build triplet: x86_64-linux-gnu
  GCC host triplet: x86_64-linux-gnu
GCC target triplet: x86_64-linux-gnu


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


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

end of thread, other threads:[~2010-07-23 18:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-26 17:45 [Bug lto/43898] New: -flto -g: "tree check: expected class 'type', have 'declaration'" max at duempel dot org
2010-04-27  9:41 ` [Bug lto/43898] -flto -g: ICE in dwarf2out_finish, at dwarf2out.c:21433 rguenth at gcc dot gnu dot org
2010-04-27  9:43 ` rguenth at gcc dot gnu dot org
2010-05-25 13:40 ` rguenth at gcc dot gnu dot org
2010-07-23 18:52 ` 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).