public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/34606] New: [4.3 regression] ICE with invalid specialization of variadic template
@ 2007-12-28 19:28 reichelt at gcc dot gnu dot org
2007-12-28 19:29 ` [Bug c++/34606] " reichelt at gcc dot gnu dot org
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-12-28 19:28 UTC (permalink / raw)
To: gcc-bugs
The following invalid code snippet triggers an ICE on mainline:
=======================================================
template<typename...> struct A;
template<typename T, typename... U> struct A<T, U>
{
template<typename> struct B;
template<typename X> struct B<X*> {};
};
=======================================================
bug.cc:3: error: parameter packs not expanded with `...':
bug.cc:3: note: 'U'
bug.cc:7: internal compiler error: tree check: expected class 'type', have
'exceptional' (error_mark) in template_class_depth, at cp/pt.c:312
Please submit a full bug report, [etc.]
The bug appeared between 2007-10-13 and 2007-11-13.
--
Summary: [4.3 regression] ICE with invalid specialization of
variadic template
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, error-recovery, monitored
Severity: normal
Priority: P3
Component: c++
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=34606
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/34606] [4.3 regression] ICE with invalid specialization of variadic template
2007-12-28 19:28 [Bug c++/34606] New: [4.3 regression] ICE with invalid specialization of variadic template reichelt at gcc dot gnu dot org
@ 2007-12-28 19:29 ` reichelt at gcc dot gnu dot org
2007-12-28 20:12 ` pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-12-28 19:29 UTC (permalink / raw)
To: gcc-bugs
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34606
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/34606] [4.3 regression] ICE with invalid specialization of variadic template
2007-12-28 19:28 [Bug c++/34606] New: [4.3 regression] ICE with invalid specialization of variadic template reichelt at gcc dot gnu dot org
2007-12-28 19:29 ` [Bug c++/34606] " reichelt at gcc dot gnu dot org
@ 2007-12-28 20:12 ` pinskia at gcc dot gnu dot org
2008-01-08 17:13 ` steven at gcc dot gnu dot org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-12-28 20:12 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
Severity|normal |minor
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34606
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/34606] [4.3 regression] ICE with invalid specialization of variadic template
2007-12-28 19:28 [Bug c++/34606] New: [4.3 regression] ICE with invalid specialization of variadic template reichelt at gcc dot gnu dot org
2007-12-28 19:29 ` [Bug c++/34606] " reichelt at gcc dot gnu dot org
2007-12-28 20:12 ` pinskia at gcc dot gnu dot org
@ 2008-01-08 17:13 ` steven at gcc dot gnu dot org
2008-01-16 21:55 ` reichelt at gcc dot gnu dot org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: steven at gcc dot gnu dot org @ 2008-01-08 17:13 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from steven at gcc dot gnu dot org 2008-01-08 17:08 -------
*** This bug has been marked as a duplicate of 34314 ***
--
steven at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34606
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/34606] [4.3 regression] ICE with invalid specialization of variadic template
2007-12-28 19:28 [Bug c++/34606] New: [4.3 regression] ICE with invalid specialization of variadic template reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2008-01-08 17:13 ` steven at gcc dot gnu dot org
@ 2008-01-16 21:55 ` reichelt at gcc dot gnu dot org
2008-01-16 22:10 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-01-16 21:55 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from reichelt at gcc dot gnu dot org 2008-01-16 21:48 -------
Although PR34314 has been fixed, the testcase here still crashes.
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|DUPLICATE |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34606
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/34606] [4.3 regression] ICE with invalid specialization of variadic template
2007-12-28 19:28 [Bug c++/34606] New: [4.3 regression] ICE with invalid specialization of variadic template reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2008-01-16 21:55 ` reichelt at gcc dot gnu dot org
@ 2008-01-16 22:10 ` pinskia at gcc dot gnu dot org
2008-01-28 23:41 ` dgregor at gcc dot gnu dot org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-01-16 22:10 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2008-01-16 21:50 -------
Confirmed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2008-01-16 21:50:58
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34606
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/34606] [4.3 regression] ICE with invalid specialization of variadic template
2007-12-28 19:28 [Bug c++/34606] New: [4.3 regression] ICE with invalid specialization of variadic template reichelt at gcc dot gnu dot org
` (4 preceding siblings ...)
2008-01-16 22:10 ` pinskia at gcc dot gnu dot org
@ 2008-01-28 23:41 ` dgregor at gcc dot gnu dot org
2008-01-29 14:02 ` dgregor at gcc dot gnu dot org
2008-01-29 14:27 ` dgregor at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: dgregor at gcc dot gnu dot org @ 2008-01-28 23:41 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from dgregor at gcc dot gnu dot org 2008-01-28 22:08 -------
This one's mine.
--
dgregor at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |dgregor at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2008-01-16 21:50:58 |2008-01-28 22:08:02
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34606
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/34606] [4.3 regression] ICE with invalid specialization of variadic template
2007-12-28 19:28 [Bug c++/34606] New: [4.3 regression] ICE with invalid specialization of variadic template reichelt at gcc dot gnu dot org
` (5 preceding siblings ...)
2008-01-28 23:41 ` dgregor at gcc dot gnu dot org
@ 2008-01-29 14:02 ` dgregor at gcc dot gnu dot org
2008-01-29 14:27 ` dgregor at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: dgregor at gcc dot gnu dot org @ 2008-01-29 14:02 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from dgregor at gcc dot gnu dot org 2008-01-29 14:01 -------
Subject: Bug 34606
Author: dgregor
Date: Tue Jan 29 13:59:59 2008
New Revision: 131938
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131938
Log:
2008-01-29 Douglas Gregor <doug.gregor@gmail.com>
PR c++/34055
PR c++/34103
PR c++/34219
PR c++/34606
PR c++/34753
PR c++/34754
PR c++/34755
PR c++/34919
PR c++/34961
* c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
2008-01-29 Douglas Gregor <doug.gregor@gmail.com>
PR c++/34055
PR c++/34103
PR c++/34219
PR c++/34606
PR c++/34753
PR c++/34754
PR c++/34755
PR c++/34919
PR c++/34961
* typeck.c (check_return_expr): Tweak call to
check_for_bare_parameter_packs.
* class.c (add_method): Be careful with error_mark_nodes.
* cp-tree.h (check_for_bare_parameter_packs): Remove "*" from
signature.
* pt.c (struct find_parameter_pack_data): Remove
SET_PACKS_TO_ERROR.
(find_parameter_packs_r): Don't use SET_PACKS_TO_ERROR.
(uses_parameter_packs): Don't set SET_PACKS_TO_ERROR.
(make_pack_expansion): Ditto.
(check_for_bare_parameter_packs): Parameter is now a tree, not a
tree*.
(process_template_parm): Tweak call to
check_for_bare_parameter_packs.
(push_template_decl_real): Tweak calls to
check_for_bare_parameter_packs. If bare parameter packs are found
in the list of exceptions, clear out that list after giving an
error.
* semantics.c (finish_cond): Tweak call to
check_for_bare_parameter_packs.
(finish_expr_stmt): Ditto.
(finish_for_expr): Ditto.
(finish_switch_cond): Ditto.
(finish_mem_initializers): Ditto.
(finish_member_declaration): Ditto.
(finish_static_assert): Check for bare parameter packs in the
condition.
* decl2.c (cplus_decl_attributes): Check for bare parameter packs in
the
attributes of a declaration.
* parser.c (cp_parser_using_declaration): Tweak call to
check_for_bare_parameter_packs.
(cp_parser_base_clause): Ditto.
2008-01-29 Douglas Gregor <doug.gregor@gmail.com>
PR c++/34055
PR c++/34103
PR c++/34219
PR c++/34606
PR c++/34753
PR c++/34754
PR c++/34755
PR c++/34919
PR c++/34961
* g++.dg/cpp0x/vt-34219-2.C: New.
* g++.dg/cpp0x/pr32126.C: Tweak expected error messages.
* g++.dg/cpp0x/vt-34961.C: New.
* g++.dg/cpp0x/vt-34055.C: Tweak error messages; add new test
cases from the re-opened PR.
* g++.dg/cpp0x/vt-34753.C: New.
* g++.dg/cpp0x/vt-34919.C: New.
* g++.dg/cpp0x/vt-34754.C: New.
* g++.dg/cpp0x/vt-34606.C: New.
* g++.dg/cpp0x/vt-34219.C: New.
* g++.dg/cpp0x/pr32125.C: Tweak expected error messages.
* g++.dg/cpp0x/vt-34755.C: New.
* g++.dg/cpp0x/pr31438.C: Ditto.
* g++.dg/cpp0x/variadic81.C: Ditto.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/vt-34219-2.C
trunk/gcc/testsuite/g++.dg/cpp0x/vt-34219.C
trunk/gcc/testsuite/g++.dg/cpp0x/vt-34606.C
trunk/gcc/testsuite/g++.dg/cpp0x/vt-34753.C
trunk/gcc/testsuite/g++.dg/cpp0x/vt-34754.C
trunk/gcc/testsuite/g++.dg/cpp0x/vt-34755.C
trunk/gcc/testsuite/g++.dg/cpp0x/vt-34919.C
trunk/gcc/testsuite/g++.dg/cpp0x/vt-34961.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-pretty-print.c
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/class.c
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/decl.c
trunk/gcc/cp/decl2.c
trunk/gcc/cp/parser.c
trunk/gcc/cp/pt.c
trunk/gcc/cp/semantics.c
trunk/gcc/cp/typeck.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/cpp0x/pr31438.C
trunk/gcc/testsuite/g++.dg/cpp0x/pr32125.C
trunk/gcc/testsuite/g++.dg/cpp0x/pr32126.C
trunk/gcc/testsuite/g++.dg/cpp0x/variadic81.C
trunk/gcc/testsuite/g++.dg/cpp0x/vt-34055.C
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34606
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/34606] [4.3 regression] ICE with invalid specialization of variadic template
2007-12-28 19:28 [Bug c++/34606] New: [4.3 regression] ICE with invalid specialization of variadic template reichelt at gcc dot gnu dot org
` (6 preceding siblings ...)
2008-01-29 14:02 ` dgregor at gcc dot gnu dot org
@ 2008-01-29 14:27 ` dgregor at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: dgregor at gcc dot gnu dot org @ 2008-01-29 14:27 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from dgregor at gcc dot gnu dot org 2008-01-29 14:25 -------
Fixed on mainline
--
dgregor at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34606
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2008-01-29 14:26 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-28 19:28 [Bug c++/34606] New: [4.3 regression] ICE with invalid specialization of variadic template reichelt at gcc dot gnu dot org
2007-12-28 19:29 ` [Bug c++/34606] " reichelt at gcc dot gnu dot org
2007-12-28 20:12 ` pinskia at gcc dot gnu dot org
2008-01-08 17:13 ` steven at gcc dot gnu dot org
2008-01-16 21:55 ` reichelt at gcc dot gnu dot org
2008-01-16 22:10 ` pinskia at gcc dot gnu dot org
2008-01-28 23:41 ` dgregor at gcc dot gnu dot org
2008-01-29 14:02 ` dgregor at gcc dot gnu dot org
2008-01-29 14:27 ` dgregor 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).