public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/58518] New: [4.8/4.9 regression] ICE template specialization
@ 2013-09-23 22:03 reichelt at gcc dot gnu.org
2013-09-23 22:20 ` [Bug c++/58518] [4.8/4.9 regression] ICE with " paolo.carlini at oracle dot com
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: reichelt at gcc dot gnu.org @ 2013-09-23 22:03 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58518
Bug ID: 58518
Summary: [4.8/4.9 regression] ICE template specialization
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: reichelt at gcc dot gnu.org
The following valid code snippet triggers an ICE since GCC 4.8.0:
========================================
template<typename T> struct A
{
template<T, T> struct B {};
template<T t> struct B<t, t> {};
};
A<int>::B<0, 0> b;
========================================
bug.cc:7:17: internal compiler error: in tsubst, at cp/pt.c:11473
A<int>::B<0, 0> b;
^
0x5a63d5 tsubst(tree_node*, tree_node*, int, tree_node*)
../../gcc/gcc/cp/pt.c:11473
0x5a92a2 convert_template_argument
../../gcc/gcc/cp/pt.c:6424
0x5a3135 coerce_template_parms
../../gcc/gcc/cp/pt.c:6827
0x5bf864 get_class_bindings
../../gcc/gcc/cp/pt.c:18177
0x5c0420 most_specialized_class
../../gcc/gcc/cp/pt.c:18398
0x5d0eb0 instantiate_class_template_1
../../gcc/gcc/cp/pt.c:8687
0x5d0eb0 instantiate_class_template(tree_node*)
../../gcc/gcc/cp/pt.c:9216
0x65cdcb complete_type(tree_node*)
../../gcc/gcc/cp/typeck.c:132
0x54da66 start_decl_1(tree_node*, bool)
../../gcc/gcc/cp/decl.c:4670
0x577851 start_decl(cp_declarator const*, cp_decl_specifier_seq*, int,
tree_node*, tree_node*, tree_node**)
../../gcc/gcc/cp/decl.c:4633
0x649a5a cp_parser_init_declarator
../../gcc/gcc/cp/parser.c:16447
0x64a32f cp_parser_simple_declaration
../../gcc/gcc/cp/parser.c:10986
0x64c190 cp_parser_block_declaration
../../gcc/gcc/cp/parser.c:10867
0x6551ae cp_parser_declaration
../../gcc/gcc/cp/parser.c:10764
0x653f0d cp_parser_declaration_seq_opt
../../gcc/gcc/cp/parser.c:10650
0x6557e6 cp_parser_translation_unit
../../gcc/gcc/cp/parser.c:3939
0x6557e6 c_parse_file()
../../gcc/gcc/cp/parser.c:28893
0x768164 c_common_parse_file()
../../gcc/gcc/c-family/c-opts.c:1046
Please submit a full bug report, [etc.]
A little longer testcase triggers an ICE in a different function:
========================================
template<typename T> struct A
{
typedef typename T::X U;
template<U, U> struct B {};
template<U u> struct B<u, u> {};
};
struct C
{
typedef int X;
};
A<C>::B<0, 0> b;
========================================
bug.cc:14:15: internal compiler error: in dependent_type_p, at cp/pt.c:19969
A<C>::B<0, 0> b;
^
0x588d28 dependent_type_p(tree_node*)
../../gcc/gcc/cp/pt.c:19969
0x589504 dependent_scope_p(tree_node*)
../../gcc/gcc/cp/pt.c:20000
0x54aed7 make_typename_type(tree_node*, tree_node*, tag_types, int)
../../gcc/gcc/cp/decl.c:3331
0x5a5781 tsubst(tree_node*, tree_node*, int, tree_node*)
../../gcc/gcc/cp/pt.c:11914
0x5a92a2 convert_template_argument
../../gcc/gcc/cp/pt.c:6424
0x5a3135 coerce_template_parms
../../gcc/gcc/cp/pt.c:6827
0x5bf864 get_class_bindings
../../gcc/gcc/cp/pt.c:18177
0x5c0420 most_specialized_class
../../gcc/gcc/cp/pt.c:18398
0x5d0eb0 instantiate_class_template_1
../../gcc/gcc/cp/pt.c:8687
0x5d0eb0 instantiate_class_template(tree_node*)
../../gcc/gcc/cp/pt.c:9216
0x65cdcb complete_type(tree_node*)
../../gcc/gcc/cp/typeck.c:132
0x54da66 start_decl_1(tree_node*, bool)
../../gcc/gcc/cp/decl.c:4670
0x577851 start_decl(cp_declarator const*, cp_decl_specifier_seq*, int,
tree_node*, tree_node*, tree_node**)
../../gcc/gcc/cp/decl.c:4633
0x649a5a cp_parser_init_declarator
../../gcc/gcc/cp/parser.c:16447
0x64a32f cp_parser_simple_declaration
../../gcc/gcc/cp/parser.c:10986
0x64c190 cp_parser_block_declaration
../../gcc/gcc/cp/parser.c:10867
0x6551ae cp_parser_declaration
../../gcc/gcc/cp/parser.c:10764
0x653f0d cp_parser_declaration_seq_opt
../../gcc/gcc/cp/parser.c:10650
0x6557e6 cp_parser_translation_unit
../../gcc/gcc/cp/parser.c:3939
0x6557e6 c_parse_file()
../../gcc/gcc/cp/parser.c:28893
Please submit a full bug report, [etc.]
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/58518] [4.8/4.9 regression] ICE with template specialization
2013-09-23 22:03 [Bug c++/58518] New: [4.8/4.9 regression] ICE template specialization reichelt at gcc dot gnu.org
@ 2013-09-23 22:20 ` paolo.carlini at oracle dot com
2013-09-24 12:43 ` mpolacek at gcc dot gnu.org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-09-23 22:20 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58518
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.8.2
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/58518] [4.8/4.9 regression] ICE with template specialization
2013-09-23 22:03 [Bug c++/58518] New: [4.8/4.9 regression] ICE template specialization reichelt at gcc dot gnu.org
2013-09-23 22:20 ` [Bug c++/58518] [4.8/4.9 regression] ICE with " paolo.carlini at oracle dot com
@ 2013-09-24 12:43 ` mpolacek at gcc dot gnu.org
2013-10-02 21:54 ` paolo.carlini at oracle dot com
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2013-09-24 12:43 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58518
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
Last reconfirmed| |2013-09-24
CC| |mpolacek at gcc dot gnu.org
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Confirmed (both). If these are different issues (and it seems they are), then
we should split this PR.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/58518] [4.8/4.9 regression] ICE with template specialization
2013-09-23 22:03 [Bug c++/58518] New: [4.8/4.9 regression] ICE template specialization reichelt at gcc dot gnu.org
2013-09-23 22:20 ` [Bug c++/58518] [4.8/4.9 regression] ICE with " paolo.carlini at oracle dot com
2013-09-24 12:43 ` mpolacek at gcc dot gnu.org
@ 2013-10-02 21:54 ` paolo.carlini at oracle dot com
2013-10-16 9:49 ` jakub at gcc dot gnu.org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-10-02 21:54 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58518
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/58518] [4.8/4.9 regression] ICE with template specialization
2013-09-23 22:03 [Bug c++/58518] New: [4.8/4.9 regression] ICE template specialization reichelt at gcc dot gnu.org
` (2 preceding siblings ...)
2013-10-02 21:54 ` paolo.carlini at oracle dot com
@ 2013-10-16 9:49 ` jakub at gcc dot gnu.org
2013-10-20 14:48 ` paolo.carlini at oracle dot com
2013-12-06 23:52 ` reichelt at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-10-16 9:49 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58518
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.8.2 |4.8.3
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 4.8.2 has been released.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/58518] [4.8/4.9 regression] ICE with template specialization
2013-09-23 22:03 [Bug c++/58518] New: [4.8/4.9 regression] ICE template specialization reichelt at gcc dot gnu.org
` (3 preceding siblings ...)
2013-10-16 9:49 ` jakub at gcc dot gnu.org
@ 2013-10-20 14:48 ` paolo.carlini at oracle dot com
2013-12-06 23:52 ` reichelt at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-10-20 14:48 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58518
--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> ---
We should also find the commit which caused the regression.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/58518] [4.8/4.9 regression] ICE with template specialization
2013-09-23 22:03 [Bug c++/58518] New: [4.8/4.9 regression] ICE template specialization reichelt at gcc dot gnu.org
` (4 preceding siblings ...)
2013-10-20 14:48 ` paolo.carlini at oracle dot com
@ 2013-12-06 23:52 ` reichelt at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: reichelt at gcc dot gnu.org @ 2013-12-06 23:52 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58518
Volker Reichelt <reichelt at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Known to work| |4.8.3
Resolution|--- |DUPLICATE
Known to fail|4.9.0 |4.8.1, 4.8.2
--- Comment #4 from Volker Reichelt <reichelt at gcc dot gnu.org> ---
This was also fixed by the patch for PR59044, so marking it as duplicate.
*** This bug has been marked as a duplicate of bug 59044 ***
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2013-12-06 23:52 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-23 22:03 [Bug c++/58518] New: [4.8/4.9 regression] ICE template specialization reichelt at gcc dot gnu.org
2013-09-23 22:20 ` [Bug c++/58518] [4.8/4.9 regression] ICE with " paolo.carlini at oracle dot com
2013-09-24 12:43 ` mpolacek at gcc dot gnu.org
2013-10-02 21:54 ` paolo.carlini at oracle dot com
2013-10-16 9:49 ` jakub at gcc dot gnu.org
2013-10-20 14:48 ` paolo.carlini at oracle dot com
2013-12-06 23:52 ` reichelt 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).