public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/58561] New: [c++0x] ICE using declaration of function with auto in return type
@ 2013-09-28 17:32 reichelt at gcc dot gnu.org
2013-09-30 7:58 ` [Bug c++/58561] [4.8/4.9 Regression] [c++11] " mpolacek at gcc dot gnu.org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: reichelt at gcc dot gnu.org @ 2013-09-28 17:32 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58561
Bug ID: 58561
Summary: [c++0x] ICE using declaration of function with auto in
return type
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++0x -g") triggers an
ICE since GCC 4.8.0:
=================
auto foo();
namespace N
{
using ::foo;
}
=================
bug.cc:1:10: warning: 'foo' function uses 'auto' type specifier without
trailing return type [enabled by default]
auto foo();
^
bug.cc:5:11: internal compiler error: in is_base_type, at dwarf2out.c:10146
using ::foo;
^
0x86a0f6 is_base_type
../../gcc/gcc/dwarf2out.c:10146
0x86a0f6 modified_type_die
../../gcc/gcc/dwarf2out.c:10337
0x86b58a add_type_attribute
../../gcc/gcc/dwarf2out.c:16702
0x861250 gen_subprogram_die
../../gcc/gcc/dwarf2out.c:17895
0x86a42a force_decl_die
../../gcc/gcc/dwarf2out.c:19955
0x87b0e2 dwarf2out_imported_module_or_decl_1
../../gcc/gcc/dwarf2out.c:20398
0x70bcf6 cp_emit_debug_info_for_using(tree_node*, tree_node*)
../../gcc/gcc/cp/name-lookup.c:6206
0x70be53 do_toplevel_using_decl(tree_node*, tree_node*, tree_node*)
../../gcc/gcc/cp/name-lookup.c:3939
0x655204 cp_parser_using_declaration
../../gcc/gcc/cp/parser.c:15771
0x6559ec cp_parser_block_declaration
../../gcc/gcc/cp/parser.c:10848
0x65e7fe cp_parser_declaration
../../gcc/gcc/cp/parser.c:10764
0x65d55d cp_parser_declaration_seq_opt
../../gcc/gcc/cp/parser.c:10650
0x65d770 cp_parser_namespace_body
../../gcc/gcc/cp/parser.c:15568
0x65d770 cp_parser_namespace_definition
../../gcc/gcc/cp/parser.c:15549
0x65e8f1 cp_parser_declaration
../../gcc/gcc/cp/parser.c:10752
0x65d55d cp_parser_declaration_seq_opt
../../gcc/gcc/cp/parser.c:10650
0x65ee46 cp_parser_translation_unit
../../gcc/gcc/cp/parser.c:3939
0x65ee46 c_parse_file()
../../gcc/gcc/cp/parser.c:28898
0x772524 c_common_parse_file()
../../gcc/gcc/c-family/c-opts.c:1046
Please submit a full bug report, [etc.]
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/58561] [4.8/4.9 Regression] [c++11] ICE using declaration of function with auto in return type
2013-09-28 17:32 [Bug c++/58561] New: [c++0x] ICE using declaration of function with auto in return type reichelt at gcc dot gnu.org
@ 2013-09-30 7:58 ` mpolacek at gcc dot gnu.org
2013-10-02 21:50 ` paolo.carlini at oracle dot com
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2013-09-30 7:58 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58561
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2013-09-30
CC| |jason at gcc dot gnu.org,
| |mpolacek at gcc dot gnu.org
Summary|[c++11] ICE using |[4.8/4.9 Regression]
|declaration of function |[c++11] ICE using
|with auto in return type |declaration of function
| |with auto in return type
Ever confirmed|0 |1
--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Started with r185768.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/58561] [4.8/4.9 Regression] [c++11] ICE using declaration of function with auto in return type
2013-09-28 17:32 [Bug c++/58561] New: [c++0x] ICE using declaration of function with auto in return type reichelt at gcc dot gnu.org
2013-09-30 7:58 ` [Bug c++/58561] [4.8/4.9 Regression] [c++11] " mpolacek at gcc dot gnu.org
@ 2013-10-02 21:50 ` paolo.carlini at oracle dot com
2013-11-19 9:51 ` rguenth at gcc dot gnu.org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-10-02 21:50 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58561
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/58561] [4.8/4.9 Regression] [c++11] ICE using declaration of function with auto in return type
2013-09-28 17:32 [Bug c++/58561] New: [c++0x] ICE using declaration of function with auto in return type reichelt at gcc dot gnu.org
2013-09-30 7:58 ` [Bug c++/58561] [4.8/4.9 Regression] [c++11] " mpolacek at gcc dot gnu.org
2013-10-02 21:50 ` paolo.carlini at oracle dot com
@ 2013-11-19 9:51 ` rguenth at gcc dot gnu.org
2014-01-24 18:27 ` paolo.carlini at oracle dot com
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-11-19 9:51 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58561
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.8.3
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/58561] [4.8/4.9 Regression] [c++11] ICE using declaration of function with auto in return type
2013-09-28 17:32 [Bug c++/58561] New: [c++0x] ICE using declaration of function with auto in return type reichelt at gcc dot gnu.org
` (2 preceding siblings ...)
2013-11-19 9:51 ` rguenth at gcc dot gnu.org
@ 2014-01-24 18:27 ` paolo.carlini at oracle dot com
2014-01-29 20:54 ` paolo at gcc dot gnu.org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: paolo.carlini at oracle dot com @ 2014-01-24 18:27 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58561
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 #3 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Mine.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/58561] [4.8/4.9 Regression] [c++11] ICE using declaration of function with auto in return type
2013-09-28 17:32 [Bug c++/58561] New: [c++0x] ICE using declaration of function with auto in return type reichelt at gcc dot gnu.org
` (3 preceding siblings ...)
2014-01-24 18:27 ` paolo.carlini at oracle dot com
@ 2014-01-29 20:54 ` paolo at gcc dot gnu.org
2014-01-29 20:58 ` [Bug c++/58561] [4.8 " paolo.carlini at oracle dot com
2014-11-24 15:00 ` dje at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: paolo at gcc dot gnu.org @ 2014-01-29 20:54 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58561
--- Comment #4 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Wed Jan 29 20:54:09 2014
New Revision: 207282
URL: http://gcc.gnu.org/viewcvs?rev=207282&root=gcc&view=rev
Log:
2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/58561
* dwarf2out.c (is_cxx_auto): New.
(is_base_type): Use it.
(gen_type_die_with_usage): Likewise.
/testsuite
2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/58561
* g++.dg/cpp1y/auto-fn23.C: New.
Added:
trunk/gcc/testsuite/g++.dg/cpp1y/auto-fn23.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/dwarf2out.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/58561] [4.8 Regression] [c++11] ICE using declaration of function with auto in return type
2013-09-28 17:32 [Bug c++/58561] New: [c++0x] ICE using declaration of function with auto in return type reichelt at gcc dot gnu.org
` (4 preceding siblings ...)
2014-01-29 20:54 ` paolo at gcc dot gnu.org
@ 2014-01-29 20:58 ` paolo.carlini at oracle dot com
2014-11-24 15:00 ` dje at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: paolo.carlini at oracle dot com @ 2014-01-29 20:58 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58561
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
Target Milestone|4.8.3 |4.9.0
Summary|[4.8/4.9 Regression] |[4.8 Regression] [c++11]
|[c++11] ICE using |ICE using declaration of
|declaration of function |function with auto in
|with auto in return type |return type
--- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Fixed for 4.9.0.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/58561] [4.8 Regression] [c++11] ICE using declaration of function with auto in return type
2013-09-28 17:32 [Bug c++/58561] New: [c++0x] ICE using declaration of function with auto in return type reichelt at gcc dot gnu.org
` (5 preceding siblings ...)
2014-01-29 20:58 ` [Bug c++/58561] [4.8 " paolo.carlini at oracle dot com
@ 2014-11-24 15:00 ` dje at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: dje at gcc dot gnu.org @ 2014-11-24 15:00 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58561
--- Comment #6 from David Edelsohn <dje at gcc dot gnu.org> ---
Author: dje
Date: Mon Nov 24 14:59:52 2014
New Revision: 218020
URL: https://gcc.gnu.org/viewcvs?rev=218020&root=gcc&view=rev
Log:
PR c++/58561
* dbxout.c: Include stringpool.h
(dbxout_type) [default]: Ignore auto type.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/dbxout.c
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2014-11-24 15:00 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-28 17:32 [Bug c++/58561] New: [c++0x] ICE using declaration of function with auto in return type reichelt at gcc dot gnu.org
2013-09-30 7:58 ` [Bug c++/58561] [4.8/4.9 Regression] [c++11] " mpolacek at gcc dot gnu.org
2013-10-02 21:50 ` paolo.carlini at oracle dot com
2013-11-19 9:51 ` rguenth at gcc dot gnu.org
2014-01-24 18:27 ` paolo.carlini at oracle dot com
2014-01-29 20:54 ` paolo at gcc dot gnu.org
2014-01-29 20:58 ` [Bug c++/58561] [4.8 " paolo.carlini at oracle dot com
2014-11-24 15:00 ` dje 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).