public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/59096] New: [4.9 Regression] [c++11] ICE with template attribute
@ 2013-11-12 23:03 reichelt at gcc dot gnu.org
2013-11-14 8:42 ` [Bug c++/59096] " rguenth at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: reichelt at gcc dot gnu.org @ 2013-11-12 23:03 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59096
Bug ID: 59096
Summary: [4.9 Regression] [c++11] ICE with template attribute
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 (compiled with "-std=c++11") triggers an ICE
on trunk:
====================================
template<typename T> struct A
{
typedef T B [[mode]];
};
A<int>::B b;
====================================
bug.cc: In instantiation of 'struct A<int>':
bug.cc:6:7: required from here
bug.cc:3:22: internal compiler error: Segmentation fault
typedef T B [[mode]];
^
0xb2bf3f crash_signal
../../gcc/gcc/toplev.c:334
0x5beaf8 contains_struct_check
../../gcc/gcc/tree.h:2819
0x5beaf8 apply_late_template_attributes
../../gcc/gcc/cp/pt.c:8618
0x5cd569 tsubst_decl
../../gcc/gcc/cp/pt.c:10976
0x5bbf6c tsubst(tree_node*, tree_node*, int, tree_node*)
../../gcc/gcc/cp/pt.c:11325
0x5e98f0 instantiate_class_template_1
../../gcc/gcc/cp/pt.c:8974
0x5e98f0 instantiate_class_template(tree_node*)
../../gcc/gcc/cp/pt.c:9238
0x677563 complete_type(tree_node*)
../../gcc/gcc/cp/typeck.c:132
0x652b5a cp_parser_nested_name_specifier_opt
../../gcc/gcc/cp/parser.c:5377
0x66120e cp_parser_constructor_declarator_p
../../gcc/gcc/cp/parser.c:22246
0x66120e cp_parser_decl_specifier_seq
../../gcc/gcc/cp/parser.c:11434
0x667d39 cp_parser_simple_declaration
../../gcc/gcc/cp/parser.c:11039
0x64bdf0 cp_parser_block_declaration
../../gcc/gcc/cp/parser.c:10988
0x66f8a7 cp_parser_declaration
../../gcc/gcc/cp/parser.c:10885
0x66e5c8 cp_parser_declaration_seq_opt
../../gcc/gcc/cp/parser.c:10771
0x66fe56 cp_parser_translation_unit
../../gcc/gcc/cp/parser.c:4007
0x66fe56 c_parse_file()
../../gcc/gcc/cp/parser.c:31107
0x791013 c_common_parse_file()
../../gcc/gcc/c-family/c-opts.c:1055
Please submit a full bug report, [etc.]
The regression appeared between 4.9.0 20131012 and 4.9.0 20131019.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/59096] [4.9 Regression] [c++11] ICE with template attribute
2013-11-12 23:03 [Bug c++/59096] New: [4.9 Regression] [c++11] ICE with template attribute reichelt at gcc dot gnu.org
@ 2013-11-14 8:42 ` rguenth at gcc dot gnu.org
2013-11-18 16:53 ` paolo.carlini at oracle dot com
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-11-14 8:42 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59096
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.9.0
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/59096] [4.9 Regression] [c++11] ICE with template attribute
2013-11-12 23:03 [Bug c++/59096] New: [4.9 Regression] [c++11] ICE with template attribute reichelt at gcc dot gnu.org
2013-11-14 8:42 ` [Bug c++/59096] " rguenth at gcc dot gnu.org
@ 2013-11-18 16:53 ` paolo.carlini at oracle dot com
2013-11-19 15:08 ` rguenth at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-11-18 16:53 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59096
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2013-11-18
Assignee|unassigned at gcc dot gnu.org |paolo.carlini at oracle dot com
Ever confirmed|0 |1
--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Patchlet here: http://gcc.gnu.org/ml/gcc-patches/2013-11/msg01433.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/59096] [4.9 Regression] [c++11] ICE with template attribute
2013-11-12 23:03 [Bug c++/59096] New: [4.9 Regression] [c++11] ICE with template attribute reichelt at gcc dot gnu.org
2013-11-14 8:42 ` [Bug c++/59096] " rguenth at gcc dot gnu.org
2013-11-18 16:53 ` paolo.carlini at oracle dot com
@ 2013-11-19 15:08 ` rguenth at gcc dot gnu.org
2013-11-25 9:29 ` paolo at gcc dot gnu.org
2013-11-25 9:30 ` paolo.carlini at oracle dot com
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-11-19 15:08 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59096
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P1
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/59096] [4.9 Regression] [c++11] ICE with template attribute
2013-11-12 23:03 [Bug c++/59096] New: [4.9 Regression] [c++11] ICE with template attribute reichelt at gcc dot gnu.org
` (2 preceding siblings ...)
2013-11-19 15:08 ` rguenth at gcc dot gnu.org
@ 2013-11-25 9:29 ` paolo at gcc dot gnu.org
2013-11-25 9:30 ` paolo.carlini at oracle dot com
4 siblings, 0 replies; 6+ messages in thread
From: paolo at gcc dot gnu.org @ 2013-11-25 9:29 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59096
--- Comment #2 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Mon Nov 25 09:29:18 2013
New Revision: 205344
URL: http://gcc.gnu.org/viewcvs?rev=205344&root=gcc&view=rev
Log:
/cp
2013-11-25 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/59080
* pt.c (unify): Don't call unify_array_domain with a NULL_TREE
third argument.
PR c++/59096
* pt.c (apply_late_template_attributes): Check that TREE_VALUE
isn't NULL_TREE in the attribute_takes_identifier_p case.
/testsuite
2013-11-25 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/59080
* g++.dg/cpp0x/initlist75.C: New.
PR c++/59096
* g++.dg/cpp0x/gen-attrs-57.C: New.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/gen-attrs-57.C
trunk/gcc/testsuite/g++.dg/cpp0x/initlist75.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/59096] [4.9 Regression] [c++11] ICE with template attribute
2013-11-12 23:03 [Bug c++/59096] New: [4.9 Regression] [c++11] ICE with template attribute reichelt at gcc dot gnu.org
` (3 preceding siblings ...)
2013-11-25 9:29 ` paolo at gcc dot gnu.org
@ 2013-11-25 9:30 ` paolo.carlini at oracle dot com
4 siblings, 0 replies; 6+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-11-25 9:30 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59096
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
Assignee|paolo.carlini at oracle dot com |unassigned at gcc dot gnu.org
--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Fixed.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2013-11-25 9:30 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-12 23:03 [Bug c++/59096] New: [4.9 Regression] [c++11] ICE with template attribute reichelt at gcc dot gnu.org
2013-11-14 8:42 ` [Bug c++/59096] " rguenth at gcc dot gnu.org
2013-11-18 16:53 ` paolo.carlini at oracle dot com
2013-11-19 15:08 ` rguenth at gcc dot gnu.org
2013-11-25 9:29 ` paolo at gcc dot gnu.org
2013-11-25 9:30 ` paolo.carlini at oracle dot com
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).