public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/60064] New: [c++1y] ICE with auto as parameter of friend function
@ 2014-02-04 20:47 reichelt at gcc dot gnu.org
2014-02-18 9:23 ` [Bug c++/60064] " mpolacek at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: reichelt at gcc dot gnu.org @ 2014-02-04 20:47 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60064
Bug ID: 60064
Summary: [c++1y] ICE with auto as parameter of friend function
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++1y") triggers an ICE
on trunk:
===========================================
struct A
{
friend void foo(auto) {}
};
===========================================
bug.cc:4:1: internal compiler error: in poplevel_class, at
cp/name-lookup.c:2951
};
^
0x77ff17 poplevel_class()
../../gcc/gcc/cp/name-lookup.c:2951
0x665008 popclass()
../../gcc/gcc/cp/class.c:7127
0x679edd finish_struct(tree_node*, tree_node*)
../../gcc/gcc/cp/class.c:6808
0x6ac14a cp_parser_class_specifier_1
../../gcc/gcc/cp/parser.c:19218
0x6ac14a cp_parser_class_specifier
../../gcc/gcc/cp/parser.c:19437
0x6ac14a cp_parser_type_specifier
../../gcc/gcc/cp/parser.c:14302
0x6c5540 cp_parser_decl_specifier_seq
../../gcc/gcc/cp/parser.c:11547
0x6cc139 cp_parser_simple_declaration
../../gcc/gcc/cp/parser.c:11137
0x6af5f3 cp_parser_block_declaration
../../gcc/gcc/cp/parser.c:11086
0x6d68f2 cp_parser_declaration
../../gcc/gcc/cp/parser.c:10983
0x6d55e8 cp_parser_declaration_seq_opt
../../gcc/gcc/cp/parser.c:10869
0x6d6eca cp_parser_translation_unit
../../gcc/gcc/cp/parser.c:4014
0x6d6eca c_parse_file()
../../gcc/gcc/cp/parser.c:31528
0x7f6973 c_common_parse_file()
../../gcc/gcc/c-family/c-opts.c:1060
Please submit a full bug report, [etc.]
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/60064] [c++1y] ICE with auto as parameter of friend function
2014-02-04 20:47 [Bug c++/60064] New: [c++1y] ICE with auto as parameter of friend function reichelt at gcc dot gnu.org
@ 2014-02-18 9:23 ` mpolacek at gcc dot gnu.org
2014-02-18 22:30 ` abutcher at gcc dot gnu.org
2014-02-19 15:44 ` reichelt at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2014-02-18 9:23 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60064
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-02-18
CC| |mpolacek at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Started ICEing with r202540, the disappeared with revert in r202570, then
started ICEing again with r202612.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/60064] [c++1y] ICE with auto as parameter of friend function
2014-02-04 20:47 [Bug c++/60064] New: [c++1y] ICE with auto as parameter of friend function reichelt at gcc dot gnu.org
2014-02-18 9:23 ` [Bug c++/60064] " mpolacek at gcc dot gnu.org
@ 2014-02-18 22:30 ` abutcher at gcc dot gnu.org
2014-02-19 15:44 ` reichelt at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: abutcher at gcc dot gnu.org @ 2014-02-18 22:30 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60064
--- Comment #2 from Adam Butcher <abutcher at gcc dot gnu.org> ---
Author: abutcher
Date: Tue Feb 18 22:29:56 2014
New Revision: 207856
URL: http://gcc.gnu.org/viewcvs?rev=207856&root=gcc&view=rev
Log:
Fix PR c++/60064.
PR c++/60064
* parser.c (cp_parser_member_declaration): Pop fully implicit template
scope for generic friend declarations as well as for non-friends.
PR c++/60064
* g++.dg/cpp1y/pr60064.C: New testcase.
Added:
trunk/gcc/testsuite/g++.dg/cpp1y/pr60064.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/60064] [c++1y] ICE with auto as parameter of friend function
2014-02-04 20:47 [Bug c++/60064] New: [c++1y] ICE with auto as parameter of friend function reichelt at gcc dot gnu.org
2014-02-18 9:23 ` [Bug c++/60064] " mpolacek at gcc dot gnu.org
2014-02-18 22:30 ` abutcher at gcc dot gnu.org
@ 2014-02-19 15:44 ` reichelt at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: reichelt at gcc dot gnu.org @ 2014-02-19 15:44 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60064
Volker Reichelt <reichelt at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
Target Milestone|--- |4.9.0
--- Comment #3 from Volker Reichelt <reichelt at gcc dot gnu.org> ---
Fixed with Adam's patch.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-02-19 15:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-04 20:47 [Bug c++/60064] New: [c++1y] ICE with auto as parameter of friend function reichelt at gcc dot gnu.org
2014-02-18 9:23 ` [Bug c++/60064] " mpolacek at gcc dot gnu.org
2014-02-18 22:30 ` abutcher at gcc dot gnu.org
2014-02-19 15:44 ` 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).