public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/51325] New: [4.7 Regression] ICE with -flto and union in template
@ 2011-11-27 21:50 reichelt at gcc dot gnu.org
2011-11-27 21:56 ` [Bug lto/51325] " reichelt at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: reichelt at gcc dot gnu.org @ 2011-11-27 21:50 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51325
Bug #: 51325
Summary: [4.7 Regression] ICE with -flto and union in template
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: reichelt@gcc.gnu.org
The following valid code snippet triggers an ICE on trunk when compiled with
"-flto -g":
============================
template<int> void foo()
{
union { int i; };
i = 0;
}
void bar()
{
foo<0>();
}
============================
bug.cc: In function 'foo<0>()void':
bug.cc:5:1: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug lto/51325] [4.7 Regression] ICE with -flto and union in template
2011-11-27 21:50 [Bug lto/51325] New: [4.7 Regression] ICE with -flto and union in template reichelt at gcc dot gnu.org
@ 2011-11-27 21:56 ` reichelt at gcc dot gnu.org
2011-11-30 23:46 ` pinskia at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: reichelt at gcc dot gnu.org @ 2011-11-27 21:56 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51325
Volker Reichelt <reichelt at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-valid-code
Target Milestone|--- |4.7.0
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug lto/51325] [4.7 Regression] ICE with -flto and union in template
2011-11-27 21:50 [Bug lto/51325] New: [4.7 Regression] ICE with -flto and union in template reichelt at gcc dot gnu.org
2011-11-27 21:56 ` [Bug lto/51325] " reichelt at gcc dot gnu.org
@ 2011-11-30 23:46 ` pinskia at gcc dot gnu.org
2011-12-03 20:52 ` zsojka at seznam dot cz
2011-12-06 14:25 ` [Bug lto/51325] [4.7 Regression] ICE with -flto -g " rguenth at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-11-30 23:46 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51325
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011-11-30
Ever Confirmed|0 |1
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-11-30 23:27:59 UTC ---
Backtrace:
#0 0x000000000053c034 in primary_template_instantiation_p (t=0x7ffff75687e0)
at /home/apinski/src/gcc-fsf/local//gcc/gcc/cp/pt.c:2874
#1 0x000000000053c8be in get_primary_template_innermost_parameters
(t=0x7ffff75687e0) at /home/apinski/src/gcc-fsf/local//gcc/gcc/cp/pt.c:2902
#2 0x00000000007f402a in generic_type_p (type=0x7ffff75687e0,
context_die=Unhandled dwarf expression opcode 0xf3
) at /home/apinski/src/gcc-fsf/local//gcc/gcc/dwarf2out.c:20045
#3 schedule_generic_params_dies_gen (type=0x7ffff75687e0,
context_die=Unhandled dwarf expression opcode 0xf3
) at /home/apinski/src/gcc-fsf/local//gcc/gcc/dwarf2out.c:20055
#4 gen_struct_or_union_type_die (type=0x7ffff75687e0, context_die=Unhandled
dwarf expression opcode 0xf3
) at /home/apinski/src/gcc-fsf/local//gcc/gcc/dwarf2out.c:18594
#5 gen_tagged_type_die (type=0x7ffff75687e0, context_die=Unhandled dwarf
expression opcode 0xf3
) at /home/apinski/src/gcc-fsf/local//gcc/gcc/dwarf2out.c:18802
#6 gen_tagged_type_die (type=0x7ffff75687e0, context_die=Unhandled dwarf
expression opcode 0xf3
) at /home/apinski/src/gcc-fsf/local//gcc/gcc/dwarf2out.c:18745
Confirmed.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug lto/51325] [4.7 Regression] ICE with -flto and union in template
2011-11-27 21:50 [Bug lto/51325] New: [4.7 Regression] ICE with -flto and union in template reichelt at gcc dot gnu.org
2011-11-27 21:56 ` [Bug lto/51325] " reichelt at gcc dot gnu.org
2011-11-30 23:46 ` pinskia at gcc dot gnu.org
@ 2011-12-03 20:52 ` zsojka at seznam dot cz
2011-12-06 14:25 ` [Bug lto/51325] [4.7 Regression] ICE with -flto -g " rguenth at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: zsojka at seznam dot cz @ 2011-12-03 20:52 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51325
Zdenek Sojka <zsojka at seznam dot cz> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |zsojka at seznam dot cz
--- Comment #2 from Zdenek Sojka <zsojka at seznam dot cz> 2011-12-03 20:51:37 UTC ---
Probably the same as PR51262
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug lto/51325] [4.7 Regression] ICE with -flto -g and union in template
2011-11-27 21:50 [Bug lto/51325] New: [4.7 Regression] ICE with -flto and union in template reichelt at gcc dot gnu.org
` (2 preceding siblings ...)
2011-12-03 20:52 ` zsojka at seznam dot cz
@ 2011-12-06 14:25 ` rguenth at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-12-06 14:25 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51325
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P1
Status|NEW |RESOLVED
Resolution| |DUPLICATE
Summary|[4.7 Regression] ICE with |[4.7 Regression] ICE with
|-flto and union in template |-flto -g and union in
| |template
--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-12-06 14:21:43 UTC ---
Dup.
*** This bug has been marked as a duplicate of bug 51262 ***
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-12-06 14:25 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-27 21:50 [Bug lto/51325] New: [4.7 Regression] ICE with -flto and union in template reichelt at gcc dot gnu.org
2011-11-27 21:56 ` [Bug lto/51325] " reichelt at gcc dot gnu.org
2011-11-30 23:46 ` pinskia at gcc dot gnu.org
2011-12-03 20:52 ` zsojka at seznam dot cz
2011-12-06 14:25 ` [Bug lto/51325] [4.7 Regression] ICE with -flto -g " 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).