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

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).