public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/41570] New: g++ 4.5 ICE with -g and c++0x variadic templates
@ 2009-10-04 17:44 ciaran dot mccreesh at googlemail dot com
2009-10-04 18:24 ` [Bug c++/41570] [c++0x] g++ 4.5 ICE with -g and " paolo dot carlini at oracle dot com
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: ciaran dot mccreesh at googlemail dot com @ 2009-10-04 17:44 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1219 bytes --]
g++ (Gentoo SVN) 4.5.0-pre9999 built 20091004 (experimental) rev. 152437
$ g++ -c -std=gnu++0x a.cc && echo ok
ok
$ g++ -c -std=gnu++0x a.cc -g && echo ok
a.cc: In instantiation of M<C>:
a.cc:22:44: instantiated from M<B, C>
a.cc:22:44: instantiated from M<A, B, C>
a.cc:37:20: instantiated from here
a.cc:21:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugs.gentoo.org/> for instructions.
$ cat a.cc
template <typename...>
struct M;
template <typename I_, typename T_>
struct E
{
};
struct T
{
};
template <>
struct M<>
{
typedef T Type;
};
template <typename H_, typename... T_>
struct M<H_, T_...>
{
typedef E<H_, typename M<T_...>::Type> Type;
};
struct A
{
};
struct R :
M<A>::Type
{
};
--
Summary: g++ 4.5 ICE with -g and c++0x variadic templates
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ciaran dot mccreesh at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41570
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/41570] [c++0x] g++ 4.5 ICE with -g and variadic templates
2009-10-04 17:44 [Bug c++/41570] New: g++ 4.5 ICE with -g and c++0x variadic templates ciaran dot mccreesh at googlemail dot com
@ 2009-10-04 18:24 ` paolo dot carlini at oracle dot com
2009-10-04 22:56 ` [Bug c++/41570] [4.5 Regression] [c++0x] " ciaran dot mccreesh at googlemail dot com
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-10-04 18:24 UTC (permalink / raw)
To: gcc-bugs
--
paolo dot carlini at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-10-04 18:24:39
date| |
Summary|g++ 4.5 ICE with -g and |[c++0x] g++ 4.5 ICE with -g
|c++0x variadic templates |and variadic templates
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41570
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/41570] [4.5 Regression] [c++0x] ICE with -g and variadic templates
2009-10-04 17:44 [Bug c++/41570] New: g++ 4.5 ICE with -g and c++0x variadic templates ciaran dot mccreesh at googlemail dot com
2009-10-04 18:24 ` [Bug c++/41570] [c++0x] g++ 4.5 ICE with -g and " paolo dot carlini at oracle dot com
@ 2009-10-04 22:56 ` ciaran dot mccreesh at googlemail dot com
2009-10-08 17:54 ` dodji at gcc dot gnu dot org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: ciaran dot mccreesh at googlemail dot com @ 2009-10-04 22:56 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from ciaran dot mccreesh at googlemail dot com 2009-10-04 22:55 -------
This was introduced in svn://gcc.gnu.org/svn/gcc/trunk@152043 for bug 41266.
The DECL_NAME (parm_pack) assertion doesn't hold if the pack's empty.
This leads to a much simpler test case:
template <typename...>
struct M
{
};
struct R :
M<>
{
};
--
ciaran dot mccreesh at googlemail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dodji at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41570
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/41570] [4.5 Regression] [c++0x] ICE with -g and variadic templates
2009-10-04 17:44 [Bug c++/41570] New: g++ 4.5 ICE with -g and c++0x variadic templates ciaran dot mccreesh at googlemail dot com
2009-10-04 18:24 ` [Bug c++/41570] [c++0x] g++ 4.5 ICE with -g and " paolo dot carlini at oracle dot com
2009-10-04 22:56 ` [Bug c++/41570] [4.5 Regression] [c++0x] " ciaran dot mccreesh at googlemail dot com
@ 2009-10-08 17:54 ` dodji at gcc dot gnu dot org
2009-10-11 21:51 ` dodji at gcc dot gnu dot org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: dodji at gcc dot gnu dot org @ 2009-10-08 17:54 UTC (permalink / raw)
To: gcc-bugs
--
dodji at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |dodji at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2009-10-04 18:24:39 |2009-10-08 17:54:20
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41570
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/41570] [4.5 Regression] [c++0x] ICE with -g and variadic templates
2009-10-04 17:44 [Bug c++/41570] New: g++ 4.5 ICE with -g and c++0x variadic templates ciaran dot mccreesh at googlemail dot com
` (2 preceding siblings ...)
2009-10-08 17:54 ` dodji at gcc dot gnu dot org
@ 2009-10-11 21:51 ` dodji at gcc dot gnu dot org
2009-10-12 11:57 ` dodji at gcc dot gnu dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: dodji at gcc dot gnu dot org @ 2009-10-11 21:51 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from dodji at gcc dot gnu dot org 2009-10-11 21:51 -------
Patch sent to http://gcc.gnu.org/ml/gcc-patches/2009-10/msg00720.html .
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41570
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/41570] [4.5 Regression] [c++0x] ICE with -g and variadic templates
2009-10-04 17:44 [Bug c++/41570] New: g++ 4.5 ICE with -g and c++0x variadic templates ciaran dot mccreesh at googlemail dot com
` (3 preceding siblings ...)
2009-10-11 21:51 ` dodji at gcc dot gnu dot org
@ 2009-10-12 11:57 ` dodji at gcc dot gnu dot org
2009-10-12 12:17 ` dodji at gcc dot gnu dot org
2009-10-15 21:18 ` hjl at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: dodji at gcc dot gnu dot org @ 2009-10-12 11:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from dodji at gcc dot gnu dot org 2009-10-12 11:57 -------
Subject: Bug 41570
Author: dodji
Date: Mon Oct 12 11:57:30 2009
New Revision: 152663
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=152663
Log:
Candidate fix for PR c++/41570
gcc/ChangeLog:
PR c++/41570
* gcc/dwarf2out.c (template_parameter_pack_die,
gen_formal_parameter_pack_die): Use add_name_and_src_coords_attributes.
gcc/testsuite/ChangeLog:
PR c++/41570
* gcc/testsuite/g++.dg/debug/dwarf2/template-params-7.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/debug/dwarf2/template-params-7.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/dwarf2out.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41570
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/41570] [4.5 Regression] [c++0x] ICE with -g and variadic templates
2009-10-04 17:44 [Bug c++/41570] New: g++ 4.5 ICE with -g and c++0x variadic templates ciaran dot mccreesh at googlemail dot com
` (4 preceding siblings ...)
2009-10-12 11:57 ` dodji at gcc dot gnu dot org
@ 2009-10-12 12:17 ` dodji at gcc dot gnu dot org
2009-10-15 21:18 ` hjl at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: dodji at gcc dot gnu dot org @ 2009-10-12 12:17 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from dodji at gcc dot gnu dot org 2009-10-12 12:16 -------
Fixed in 4.5.
--
dodji at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41570
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/41570] [4.5 Regression] [c++0x] ICE with -g and variadic templates
2009-10-04 17:44 [Bug c++/41570] New: g++ 4.5 ICE with -g and c++0x variadic templates ciaran dot mccreesh at googlemail dot com
` (5 preceding siblings ...)
2009-10-12 12:17 ` dodji at gcc dot gnu dot org
@ 2009-10-15 21:18 ` hjl at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: hjl at gcc dot gnu dot org @ 2009-10-15 21:18 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from hjl at gcc dot gnu dot org 2009-10-15 21:18 -------
Subject: Bug 41570
Author: hjl
Date: Thu Oct 15 21:17:36 2009
New Revision: 152870
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=152870
Log:
2009-10-15 H.J. Lu <hongjiu.lu@intel.com>
Backport from mainline:
2009-10-13 Martin Jambor <mjambor@suse.cz>
* gcc.c-torture/compile/pr41661.c: New test.
2009-10-12 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/41683
* gfortran.dg/fmt_error_9.f: Add check for repeat count after P.
2009-10-12 Dodji Seketeli <dodji@redhat.com>
PR c++/41570
* g++.dg/debug/dwarf2/template-params-7.C: New test.
2009-10-11 Richard Guenther <rguenther@suse.de>
PR tree-optimization/41555
* gcc.dg/torture/pr41555.c: New testcase.
2009-10-09 Richard Guenther <rguenther@suse.de>
PR tree-optimization/41634
* gcc.c-torture/compile/pr41634.c: New testcase.
2009-10-08 Michael Matz <matz@suse.de>
PR middle-end/41573
* gcc.dg/pr41573.c: New test.
2009-10-07 Joseph Myers <joseph@codesourcery.com>
PR c/41182
* gcc.c-torture/compile/pr41182-1.c: New.
Added:
branches/gcc-4_4-branch/gcc/testsuite/g++.dg/debug/dwarf2/template-params-7.C
- copied unchanged from r152869,
trunk/gcc/testsuite/g++.dg/debug/dwarf2/template-params-7.C
branches/gcc-4_4-branch/gcc/testsuite/gcc.c-torture/compile/pr41182-1.c
- copied unchanged from r152869,
trunk/gcc/testsuite/gcc.c-torture/compile/pr41182-1.c
branches/gcc-4_4-branch/gcc/testsuite/gcc.c-torture/compile/pr41634.c
- copied unchanged from r152869,
trunk/gcc/testsuite/gcc.c-torture/compile/pr41634.c
branches/gcc-4_4-branch/gcc/testsuite/gcc.c-torture/compile/pr41661.c
- copied unchanged from r152868,
trunk/gcc/testsuite/gcc.c-torture/compile/pr41661.c
branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/pr41573.c
- copied unchanged from r152869, trunk/gcc/testsuite/gcc.dg/pr41573.c
branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/torture/pr41555.c
- copied unchanged from r152869,
trunk/gcc/testsuite/gcc.dg/torture/pr41555.c
branches/gcc-4_4-branch/gcc/testsuite/gfortran.dg/fmt_error_9.f
- copied unchanged from r152869,
trunk/gcc/testsuite/gfortran.dg/fmt_error_9.f
Modified:
branches/gcc-4_4-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41570
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2009-10-15 21:18 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-04 17:44 [Bug c++/41570] New: g++ 4.5 ICE with -g and c++0x variadic templates ciaran dot mccreesh at googlemail dot com
2009-10-04 18:24 ` [Bug c++/41570] [c++0x] g++ 4.5 ICE with -g and " paolo dot carlini at oracle dot com
2009-10-04 22:56 ` [Bug c++/41570] [4.5 Regression] [c++0x] " ciaran dot mccreesh at googlemail dot com
2009-10-08 17:54 ` dodji at gcc dot gnu dot org
2009-10-11 21:51 ` dodji at gcc dot gnu dot org
2009-10-12 11:57 ` dodji at gcc dot gnu dot org
2009-10-12 12:17 ` dodji at gcc dot gnu dot org
2009-10-15 21:18 ` hjl 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).