public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/60384] New: [4.9 Regression] [c++1y] ICE with invalid typedef
@ 2014-03-01 23:08 reichelt at gcc dot gnu.org
2014-03-01 23:09 ` [Bug c++/60384] " reichelt at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: reichelt at gcc dot gnu.org @ 2014-03-01 23:08 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60384
Bug ID: 60384
Summary: [4.9 Regression] [c++1y] ICE with invalid typedef
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Keywords: error-recovery, ice-on-invalid-code
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: reichelt at gcc dot gnu.org
The following invalid testcase (compiled with "-std=c++1y")
triggers an ICE on trunk:
================================
template<typename> int foo();
struct A
{
typedef auto foo<>();
};
================================
bug.cc:5:22: error: typedef declared 'auto'
typedef auto foo<>();
^
bug.cc:5:22: internal compiler error: tree check: expected identifier_node,
have template_id_expr in push_class_level_binding_1, at cp/name-lookup.c:3172
0xdc0f54 tree_check_failed(tree_node const*, char const*, int, char const*,
...)
../../gcc/gcc/tree.c:9192
0x784196 tree_check
../../gcc/gcc/tree.h:2709
0x784196 push_class_level_binding_1
../../gcc/gcc/cp/name-lookup.c:3172
0x784196 push_class_level_binding(tree_node*, tree_node*)
../../gcc/gcc/cp/name-lookup.c:3281
0x784339 pushdecl_class_level(tree_node*)
../../gcc/gcc/cp/name-lookup.c:3013
0x7345bf finish_member_declaration(tree_node*)
../../gcc/gcc/cp/semantics.c:2870
0x6ac95f cp_parser_member_declaration
../../gcc/gcc/cp/parser.c:20531
0x6afa84 cp_parser_member_specification_opt
../../gcc/gcc/cp/parser.c:20029
0x6afa84 cp_parser_class_specifier_1
../../gcc/gcc/cp/parser.c:19263
0x6afa84 cp_parser_class_specifier
../../gcc/gcc/cp/parser.c:19490
0x6afa84 cp_parser_type_specifier
../../gcc/gcc/cp/parser.c:14305
0x6c8fb0 cp_parser_decl_specifier_seq
../../gcc/gcc/cp/parser.c:11547
0x6cfb69 cp_parser_simple_declaration
../../gcc/gcc/cp/parser.c:11137
0x6b3003 cp_parser_block_declaration
../../gcc/gcc/cp/parser.c:11086
0x6da2d2 cp_parser_declaration
../../gcc/gcc/cp/parser.c:10983
0x6d8fc8 cp_parser_declaration_seq_opt
../../gcc/gcc/cp/parser.c:10869
0x6da87a cp_parser_translation_unit
../../gcc/gcc/cp/parser.c:4014
0x6da87a c_parse_file()
../../gcc/gcc/cp/parser.c:31590
0x7fa103 c_common_parse_file()
../../gcc/gcc/c-family/c-opts.c:1060
Please submit a full bug report, [etc.]
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/60384] [4.9 Regression] [c++1y] ICE with invalid typedef
2014-03-01 23:08 [Bug c++/60384] New: [4.9 Regression] [c++1y] ICE with invalid typedef reichelt at gcc dot gnu.org
@ 2014-03-01 23:09 ` reichelt at gcc dot gnu.org
2014-03-03 8:03 ` jakub at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: reichelt at gcc dot gnu.org @ 2014-03-01 23:09 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60384
Volker Reichelt <reichelt at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |4.8.0
Target Milestone|--- |4.9.0
Known to fail| |4.9.0
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/60384] [4.9 Regression] [c++1y] ICE with invalid typedef
2014-03-01 23:08 [Bug c++/60384] New: [4.9 Regression] [c++1y] ICE with invalid typedef reichelt at gcc dot gnu.org
2014-03-01 23:09 ` [Bug c++/60384] " reichelt at gcc dot gnu.org
@ 2014-03-03 8:03 ` jakub at gcc dot gnu.org
2014-03-06 15:59 ` paolo.carlini at oracle dot com
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-03-03 8:03 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60384
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-03-03
CC| |jakub at gcc dot gnu.org,
| |jason at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r199779.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/60384] [4.9 Regression] [c++1y] ICE with invalid typedef
2014-03-01 23:08 [Bug c++/60384] New: [4.9 Regression] [c++1y] ICE with invalid typedef reichelt at gcc dot gnu.org
2014-03-01 23:09 ` [Bug c++/60384] " reichelt at gcc dot gnu.org
2014-03-03 8:03 ` jakub at gcc dot gnu.org
@ 2014-03-06 15:59 ` paolo.carlini at oracle dot com
2014-03-21 16:36 ` paolo at gcc dot gnu.org
2014-03-21 16:39 ` paolo.carlini at oracle dot com
4 siblings, 0 replies; 6+ messages in thread
From: paolo.carlini at oracle dot com @ 2014-03-06 15:59 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60384
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |paolo.carlini at oracle dot com
--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Looking into it.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/60384] [4.9 Regression] [c++1y] ICE with invalid typedef
2014-03-01 23:08 [Bug c++/60384] New: [4.9 Regression] [c++1y] ICE with invalid typedef reichelt at gcc dot gnu.org
` (2 preceding siblings ...)
2014-03-06 15:59 ` paolo.carlini at oracle dot com
@ 2014-03-21 16:36 ` paolo at gcc dot gnu.org
2014-03-21 16:39 ` paolo.carlini at oracle dot com
4 siblings, 0 replies; 6+ messages in thread
From: paolo at gcc dot gnu.org @ 2014-03-21 16:36 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60384
--- Comment #3 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Fri Mar 21 16:35:26 2014
New Revision: 208752
URL: http://gcc.gnu.org/viewcvs?rev=208752&root=gcc&view=rev
Log:
/cp
2014-03-21 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/60384
* name-lookup.c (push_class_level_binding_1): Check identifier_p
on the name argument.
/testsuite
2014-03-21 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/60384
* g++.dg/cpp1y/pr60384.C: New.
Added:
trunk/gcc/testsuite/g++.dg/cpp1y/pr60384.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/name-lookup.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/60384] [4.9 Regression] [c++1y] ICE with invalid typedef
2014-03-01 23:08 [Bug c++/60384] New: [4.9 Regression] [c++1y] ICE with invalid typedef reichelt at gcc dot gnu.org
` (3 preceding siblings ...)
2014-03-21 16:36 ` paolo at gcc dot gnu.org
@ 2014-03-21 16:39 ` paolo.carlini at oracle dot com
4 siblings, 0 replies; 6+ messages in thread
From: paolo.carlini at oracle dot com @ 2014-03-21 16:39 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60384
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 #4 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Fixed.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-03-21 16:39 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-01 23:08 [Bug c++/60384] New: [4.9 Regression] [c++1y] ICE with invalid typedef reichelt at gcc dot gnu.org
2014-03-01 23:09 ` [Bug c++/60384] " reichelt at gcc dot gnu.org
2014-03-03 8:03 ` jakub at gcc dot gnu.org
2014-03-06 15:59 ` paolo.carlini at oracle dot com
2014-03-21 16:36 ` paolo at gcc dot gnu.org
2014-03-21 16:39 ` 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).