This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/66103] New: [6 Regression] ICE verify_type failed
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 11 May 2015 10:45:06 +0000
- Subject: [Bug lto/66103] New: [6 Regression] ICE verify_type failed
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66103
Bug ID: 66103
Summary: [6 Regression] ICE verify_type failed
Product: gcc
Version: 6.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: lto
Assignee: unassigned at gcc dot gnu.org
Reporter: burnus at gcc dot gnu.org
Target Milestone: ---
The following program used to compile awhile ago, but now it ICEs when compiled
with "g++ -flto -g". It works without "-g"
class ios_base {
public:
class Init {
public:
Init ();
};
};
static ios_base::Init __ioinit;
class Foo {
static const Foo m_var;
static inline const Foo & getFoo () {
return m_var;
}
};
input17c.ii:14:2: error: type variant has different TYPE_FIELDS
...
input17c.ii:14:2: internal compiler error: verify_type failed
0xf2b36d verify_type(tree_node const*)
../../gcc/tree.c:12971
0x970e54 gen_type_die_with_usage
../../gcc/dwarf2out.c:20247
0x96f47b gen_decl_die
../../gcc/dwarf2out.c:21007
0x9703ec dwarf2out_decl
../../gcc/dwarf2out.c:21394
0xcb962c emit_debug_global_declarations(tree_node**, int)
../../gcc/toplev.c:576
0x6d0c2d cp_write_global_declarations()
../../gcc/cp/decl2.c:4814